-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Program
class, type information
#29
Conversation
An instance of the `Program` class has the `.assembled` property as well as the `pio_kwargs` property. This allows passing information from the assembler to the StateMachine constructor, in a way that can be extended in future versions (e.g., for .wrap / .wrap_target) This re-indents a lot of code so it may be better viewed with whitespace changes hidden. Tests are added for the limits of the side-set and delay values. An off-by-one bug with the sideset_value limit was fixed.
@tannewt should the |
I don't think so. It's called |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add an example that uses the Program class. That way we can show folks how to use it.
Otherwise, this looks like a good change! It'll be nice to get kwargs out of it.
Merged with the latest & converted the txuart example to use Program and **pio_kwargs (not actually tested on HW) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
Updating https://github.com/adafruit/Adafruit_CircuitPython_DRV2605 to 1.2.1 from 1.2.0: > Merge pull request adafruit/Adafruit_CircuitPython_DRV2605#30 from tekktrik/doc/fix-code-block Updating https://github.com/adafruit/Adafruit_CircuitPython_ESP32SPI to 3.6.0 from 3.5.14: > Merge pull request adafruit/Adafruit_CircuitPython_ESP32SPI#150 from tekktrik/feature/configurable-eol > Merge pull request adafruit/Adafruit_CircuitPython_ESP32SPI#151 from tekktrik/feature/add-recvinto > Merge pull request adafruit/Adafruit_CircuitPython_ESP32SPI#152 from tekktrik/hotfix/fix-docs > Merge pull request adafruit/Adafruit_CircuitPython_ESP32SPI#149 from tekktrik/doc/add-missing-to-api Updating https://github.com/adafruit/Adafruit_CircuitPython_FRAM to 1.3.13 from 1.3.12: > Merge pull request adafruit/Adafruit_CircuitPython_FRAM#33 from tekktrik/doc/update-documentation Updating https://github.com/adafruit/Adafruit_CircuitPython_HT16K33 to 4.2.0 from 4.1.9: > Merge pull request adafruit/Adafruit_CircuitPython_HT16K33#88 from jposada202020/including_animation_class Updating https://github.com/adafruit/Adafruit_CircuitPython_PyPortal to 6.2.0 from 6.1.0: > Merge pull request adafruit/Adafruit_CircuitPython_PyPortal#120 from FoamyGuy/force_content_type Updating https://github.com/adafruit/Adafruit_CircuitPython_CursorControl to 2.5.2 from 2.5.1: > Merge pull request adafruit/Adafruit_CircuitPython_CursorControl#32 from FoamyGuy/alt_click Updating https://github.com/adafruit/Adafruit_CircuitPython_FunHouse to 2.1.10 from 2.1.8: > Merge pull request adafruit/Adafruit_CircuitPython_FunHouse#33 from makermelissa/main > Merge pull request adafruit/Adafruit_CircuitPython_FunHouse#31 from makermelissa/main Updating https://github.com/adafruit/Adafruit_CircuitPython_MiniMQTT to 5.2.0 from 5.1.6: > Merge pull request adafruit/Adafruit_CircuitPython_MiniMQTT#97 from goliothlabs/feat/add-binary-support Updating https://github.com/adafruit/Adafruit_CircuitPython_PIOASM to 0.6.0 from 0.5.4: > Merge pull request adafruit/Adafruit_CircuitPython_PIOASM#29 from jepler/program-object
An instance of the
Program
class has theassembled
property as well as thepio_kwargs
property. This allows passing information from the assembler to theStateMachine
constructor, in a way that can be extended in future versions (e.g., for .wrap / .wrap_target)This re-indents a lot of code so it may be better viewed with whitespace changes hidden.
Tests are added for the limits of the side-set and delay values. An off-by-one bug with the sideset_value limit was fixed.
Closes: #28