These constants were always a bit weird:
* they use an uncommon name (TWI instead of I2C)
* they don't follow Go naming conventions (CamelCase)
* the constants don't provide much value: their name is their value
(100KHZ => 100e3).
Therefore, I propose we remove them and replace them with regular
numeric constants.
The package with the main function should always have the name main.
This was not the case in three packages.
This was silently allowed before, but since a TinyGo change
(https://github.com/tinygo-org/tinygo/pull/1592) this now results in a
linker failure.
Perhaps this should result in a better error message in TinyGo. However,
the example code also needs to be fixed, so hence this PR.
* Merge AVR support for Digispark and non-Digispark
* Fix the error "inline assembly requires more registers than available"
* Use a single file for all AVR targets, in a similar style as the
Xtensa support.
- FrameRate option sets device framerates from 39-111Hz
- VSyncLines option adjusts device vsync pause using st7789 "porch control" feature
- Added Rx(cmd, bytes[]) to support retrieving scanline timing data over SPI
- Added Sync functions to support syncronization of animation to vertical scanline timing
- Minor adjustments to Configure to clear screen memory before display is visible
* gps: buxfixes and refactoring of API to separate device from parser
Signed-off-by: deadprogram <ron@hybridgroup.com>
* gps: simplify time parser
Signed-off-by: deadprogram <ron@hybridgroup.com>
* gps: add support for RMC sentences
Signed-off-by: deadprogram <ron@hybridgroup.com>
* gps: small renaming to remove reduntant use of word GPS
Signed-off-by: deadprogram <ron@hybridgroup.com>
* Fix setWindow bug, add CS pin for Clue compatibility.
- corrected bit shift in setWindow that broke high addresses
- added csPin to constructor (will now work with adafruit clue)
- small adjustments and comments to init routine based on working arduino driver
* Update main.go
Updated test example with CS pin.
* Reverting unnecessary (no-effect) change in setRotation.
* shifter: simplify API surface and use build directive to directly match the PyBadge
Signed-off-by: Ron Evans <ron@hybridgroup.com>
* shifter: further simplify API for PyBadge
Signed-off-by: Ron Evans <ron@hybridgroup.com>
* Basic support of SIPO shift register
* typo
* add example of shiftregister for arduino and nucleo
* Fix build flag for nucleof103rb
* Fix wrong data pin configuration
* Change README.md for Shift registers
* Add API for individual register's output pin
* Rewrite shift register example to show ShiftPin usage
* Fix target for shiftregister example smoke test
* Fix type in makefile
* Add shiftregister compatble IC
* Edit comment and readme
* wifinina: implementation of WiFiNINA driver, including:
- TCP client example is working
- reading sockets and mqtt working
- switched over to common net package also used by espat package
- smoke tests and updated README for wifinina