This PR adds support for controlling servos. For example, on the Arduino
Uno it should be able to control up to 6 servos jitter-free when using
all available PWM pins.
I haven't added support for setting a position in degrees, mainly
because this varies by servo and it's probably necessary to configure
the bounds in some way. Therefore, I added just SetMicroseconds. This
makes the API possible to use and leaves the possibility of adding a
SetPosition in the future.
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