Commit Graph

377 Commits (09421e375fa58360f2c94e6893baf3dd876c785b)
 

Author SHA1 Message Date
Filip Stanis 09421e375f Adds support for Inky Frame 7.3" 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
Marc-Antoine Ruel 0fff63390d github actions: fix actions/setup-go@v3
I was misusing semver, using ^ where I wanted ~
4 years ago
hansmi 0012149b5d
waveshare2in13v2: Support rotation of image (#46)
* waveshare2in13v2: Populate bounds only once

The forthcoming introduction of image orientation will make the
computation slightly more complicated. The bounds are fixed during the
lifetime of a "Dev" instance, so it's better to retain them.

* waveshare2in13v2: Make sending image part of drawOpts

* waveshare2in13v2: Unexport drawSpec members

The members of the "drawSpec" structure are only for internal use, so
rename them to start with a lower-case letter.

* waveshare2in13v2: Implement support for rotating image

A new option named "Origin" controls which of the four corners of the
display should be used as the (0,0) position for the image. The
in-memory buffer is kept in logical orientation. The actual rotation
happens only when sending updates.

By aligning the buffer accordingly the code is already prepared for
a more efficient sending of image data for the "TopRight" and
"BottomLeft" origins. See the TODO comment on "drawSpec.BufferDstOffset"
for details.

Signed-off-by: Michael Hanselmann <public@hansmi.ch>
4 years ago
Michael Hanselmann 394037d235 waveshare2in13v2: Simplify memory area configuration
Use Go's built-in "encoding/binary" package to encode the memory area
size and re-use the encoded positions for setting the counters.
4 years ago
Michael Hanselmann 0349dabcd3 waveshare2in13v2: List width first in String() result
The convention is to write dimensions with the width first.
4 years ago
Michael Hanselmann 59e1d3f851 waveshare2in13v2: Add test for New()
Ensure the internal buffer has the correct size and a few other
properties are correct.

Signed-off-by: Michael Hanselmann <public@hansmi.ch>
4 years ago
Michael Hanselmann 0e5a5b501f image1bit: Fix typos 4 years ago
Falk Scheerschmidt f6271cf4a4 add sgp30 air quality sensor 4 years ago
Michael Hanselmann 36e39aaecb waveshare2in13v2: Clarify documentation on controller
Additional research provided information confirming that Waveshare
2.13in v2 displays are in fact GDEH0213B72, not GDEH0213B73, or at least
equivalent.
4 years ago
Michael Hanselmann 8f521b945e videosink: Implement rate-limiting, keep-alive
Resolve the remaining two TODOs by adding an upper limit on the frame
rate (defaults to 15 per second) and sending an image every once in
a while even when there were no changes (defaults to once a minute).

Signed-off-by: Michael Hanselmann <public@hansmi.ch>
4 years ago
Michael Hanselmann 1b1970bf7c waveshare2in13v2: Use drawing functionality for clearing
With the introduction of the shadow buffer in commit 4f99575 there's
always a sufficiently large memory buffer to keep the bytes to send for
clearing and the dedicated code using a smaller buffer is no longer
needed. This also has the advantage of automatically updating both
on-device buffers.
4 years ago