Commit Graph

387 Commits (bc9678aa182f28c7a01ce7224cccc295aa6f9f27)
 

Author SHA1 Message Date
gsexton bc9678aa18
mpu9250: Add i2c interface support (#101)
* Refactor SPI transport to be dual transport. 
* Implement I2C support.
1 year ago
gsexton 38cb3394bc
Devices: Initial Add of Waveshare 1602 Support (#100)
* Initial Add of Waveshare 1602 Support
1 year ago
gsexton ea55a05aa1
Add Support for 74HC595 Serial -> Parallel Shift Register (#99) 1 year ago
gsexton 7555373ca1
devices: Add support for PCF857X GPIO Extenders (#98)
Includes support for gpio.Group
1 year ago
Filip Stanis eb90d53534
[inky] Add Inky Impression 7.3" support (#75)
* Adds support for Inky Frame 7.3"

Co-authored-by: Olivier Mengué <dolmen@cpan.org>
Co-authored-by: George Sexton <georges@mhsoftware.com>
Co-authored-by: M-A <maruel@gmail.com>
Co-authored-by: Olivier Mengué <dolmen@cpan.org>
1 year ago
Olivier Mengué 4ac3d19e0c
lepton/cci: run stringer with "go run" (#96)
Run the stringer command (for code generation) using "go run" instead of
"go install" to avoid affecting the developer's global $GOBIN.
1 year ago
Olivier Mengué 321f6f6211
inky: run stringer with "go run" (#95)
Run stringer command (for code generation) using "go run" instead of "go
install" to avoid affecting the developer's global $GOBIN.
1 year ago
Olivier Mengué f007d15374
inky: improve godoc (#94)
Add godoc links to ease discovery.
1 year ago
gsexton 5bcc204c9a
mcp23xxx: Add GPIO Group support (#92)
* Add GPIO Group support to mcp23xxx

* Add unit tests for group

* Fix unit test

* add file

* Fix lint errors
1 year ago
gsexton d5aac04cf4
Add Support for MatrixOrbital LK204-7T LCD Display (#93)
* Initial Add

* Fix lint errors

* Address review comments
1 year ago
x86ed b09dc06512
waveshare2in13v3/waveshare2in13v4: adding v3 and v4 waveshare 2.13" ePaper displays (#65)
* adding v3 and v4 waveshare

* updating file

* Update waveshare213v4.go

Remove unreferenced, unexported values.

* Update waveshare213v3.go

Remove unreferenced, unexported constants.

---------

Co-authored-by: gsexton <georges@mhsoftware.com>
1 year ago
gsexton cad22759dd
Add Support for SparkFun SerLCD Display (#88)
* Initial Creation
* Bump conn version
* add more documentation for 32 byte limit. minor code restructure to be more transparent
1 year ago
gsexton c46abe928c
Issue #73 - restructure so voltage can be returned even if power/current is meaningless. (#87) 1 year ago
Marc-Antoine Ruel 0fba034629 Update dependencies 1 year ago
Shannon Wynter cfd565d1ad
ep0099: optionally read device state on init (#86) 1 year ago
gsexton 72857e8c3f
Add TI HDC302x Sensor Support (#83)
* Fix race conditions in test SenseContinuous()

Fixes #84
1 year ago
gsexton 7fd42d5ebf
devices: Add support for AM2320 Temperature/Humidity Sensor (#82)
* AM2320 Temp/Humidity Sensor - Initial Add
1 year ago
gsexton 9a938c42a7
scd4x: SCD4x CO2 Sensor - Initial Add (#81)
* Initial Add

* Fix lint issue and inversion of skip testing
2 years ago
Zac 5bc0352f3a
tic: Add I²C support for Tic Stepper Motor Controllers (#78)
* tic: Add I²C support for Tic Stepper Motor Controllers (#1)

* Initialise buffers as arrays instead of slices

* Remove redundant step modes and improve docs

* Make Offset type private

* Remove shadowed variable
2 years ago
Marc-Antoine Ruel 536214b3ab Reduce PR target coverage to 40%
60% was fairly high and can be rough to achieve.
2 years ago
gsexton c0037af197
Max7219 LED Driver (#79) 2 years ago
M-A 9ab07ba9a6
codecov.yml: lower project min coverage to 45% (#80) 2 years ago
czechbol 853aec60c1
Refactor display options in ssd1306.go (#77) 2 years ago
gsexton f9d46888f5
tmp102: Initial add of tmp102 driver. (#76) 2 years ago
Benjamin Godding 2cf8fa10c9
bmxx80: add support for filters without using SenseContinuous (#74) 2 years ago
Marc-Antoine Ruel 67ec1da964 Silence linting 2 years ago
Marc-Antoine Ruel a9604df110 #TIL go.mod go statement requires minor version 2 years ago
Marc-Antoine Ruel 85abab6a8b Add myself to AUTHORS 2 years ago
Marc-Antoine Ruel d18deefcb2 Fix go generate 2 years ago
Marc-Antoine Ruel 4af5b06bff Update go dependencies
Ran:
  go get -u -t ./...
  go mod tidy
2 years ago
Marc-Antoine Ruel 9d40bc1d63 Remove disclaimers
Remove quote about Google ownership and lack of affiliation with the Go
project. It's not owned by Google anymore and I don't believe there's
confusion about the Go project.
2 years ago
Marc-Antoine Ruel 5de331625c Update go.mod to 1.22 and update github actions workflow 2 years ago
Louis 87b5c7d124
Add doc file for AHT20 (#72) 2 years ago
Louis 5d320c70db
Add AHT20 example code (#71)
* add AHT20 example code

* add Precision() test
2 years ago
Louis 872d025e9d
Add AHT20 tests (#70)
* add Sense() test

* fix IsInitialized() always returning false

* add tests for most exported Methods

* add negative test cases for Sense()

* add license to test

* fix CRC checksum of read timeout test

* fix read timeout test

* remove read timeout test

* remove opts from test case
2 years ago
Louis e644b7c436
Add AHT20 sensor (#68)
Co-authored-by: Wilke, Louis <louis.wilke@exxeta.com>
2 years ago
Benoit Pereira da Silva bd7de1d36d
adxl345: I²C support (#67)
- Removed useless ReadRaw
- Changed the scope of ReadAndCombine to private readAndCombine
- Renamed ExampleNewI2C & ExampleNewSpi to follow the recommandations. Exposed an I2CAddr for those who may need it.
2 years ago
Benoit Pereira da Silva 931687b33a
adxl345: Driver, initial commit for review. (#66)
Accelerator sensor. Supports SPI, designed to support I2C in the future.
2 years ago
M-A c14e02d418
go.mod bump to go1.20 (#58)
Update github actions.
3 years ago
emulatorchen 8b220202b3
lirc requries linebreak \n for SEND_ONCE (#57)
Co-authored-by: Victor Chen <vc@discoverelement.com>
3 years ago
Çağlar Onur e271f7c07b
[inky] Add Inky Impression 5.7" and 4" support (#55)
It is a 7 colour ePaper/eInk HAT that comes with 5.7" (600 x 448 pixel) or 4" (640 x 400 pixel).

Refactors the existing 3 color Inky and adds additional fields to
auto-detect via EEPROM.

Tested with 5.7" version.
3 years ago
eldondevat ae3205944c
ina219: Interpret signed output register values (#54)
The current and shunt voltage register values are signed, twos
complement format. In my tests interpreting them directly in the
way implemented here gave output consistent with other ina219
libraries.

Co-authored-by: Eldon Stegall <periphgithub@eldondev.com>
4 years ago
Marc-Antoine Ruel 212f060876 Remove compatibility with before 1.17 4 years ago
Marc-Antoine Ruel eb0d2cc2b9 Update to go1.17
Update dependencies
Update github actions
Ran gofmt
Fix one gosec warning
4 years ago
bezineb5 f454513a2a
tlv493d: improved reset logging (#53) 4 years ago
bezineb5 43cd79527c
tlv493d: Auto-reset TLV493D on error (#52) 4 years ago
Weston Schmidt a6bfa877b6
tca95xx: Add support for i/o extenders. (#51) 4 years ago
Matt Hazley 600c8cc85c
Added a new set of Opts for the waveshare 2in13 rev2.1 - needed a different LUT (#49)
Co-authored-by: Matthew Hazley <Matthew.Hazley@dyson.com>
4 years ago
Florian Klink 05bab7ef1f
nrzled.NewSPI: also add padding in the front (#48)
Some SPI devices take a while to set up for transfer, and while doing
so, show the first bit they're about to send.

This causes the first LED to always interpret the first symbol as a
logical 1. Zapping out the whole strip will leave the first LED green,
and the first pixel will always be slightly green-ish.

Prevent this, by applying the same 3 bit padding we have at the end to
the front.

Signed-off-by: Florian Klink <flokli@flokli.de>
4 years ago
Marc-Antoine Ruel 4dd649e46c github actions: remove golint
It's been deprecated since 2020. Good bye
4 years ago