Commit graph

228 commits

Author SHA1 Message Date
Jeff Epler
9707333567 Add Program class, type information
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.
2021-12-26 10:35:41 -06:00
Jeff Epler
d43cdd0eb9
Merge pull request #27 from tannewt/sideset_enable
Add sideset assembly support.
2021-12-26 07:58:51 -07:00
Scott Shawcroft
dd2f65e4d5
Add one more test case 2021-12-23 11:21:30 -08:00
Scott Shawcroft
6fd0518867
Fix tests and add one 2021-12-22 12:35:25 -08:00
Scott Shawcroft
210873997e
pre-commit formatting 2021-12-22 12:20:08 -08:00
Scott Shawcroft
9a1d5c6141
Add sideset assembly support.
You must also set `sideset_enable` when creating the rp2pio.StateMachine
object.

Fixes #16 and fixes #21.
2021-12-22 12:10:14 -08:00
Scott Shawcroft
06c08f5fd3
Merge pull request #26 from dannystaple/main
Link the pioasm docs to the rp2pio docs
2021-12-21 16:13:57 -08:00
Danny Staple
f312d8dc66
Merge pull request #1 from dannystaple/docs-update
Add a link to the related rp2pio docs
2021-12-21 12:06:21 +00:00
Danny Staple
8a5deaf8cb
Add a link to the related rp2pio docs 2021-12-21 12:04:57 +00:00
foamyguy
cea24409c3 update rtd py version 2021-11-23 13:15:34 -06:00
Dylan Herrada
0f3df847d6
Disabled unspecified-encoding 2021-11-12 13:57:28 -05:00
dherrada
6853d0638a Updated readthedocs file 2021-11-09 15:31:09 -05:00
Kattni
d728a1b9ec
Merge pull request #25 from adafruit/patch-fix
Linted
2021-11-05 17:23:19 -04:00
dherrada
e26a5801f0 Linted 2021-11-05 14:16:37 -04:00
dherrada
beaa2a7401 PATCH Pylint and readthedocs patch test
Signed-off-by: dherrada <dylan.herrada@adafruit.com>
2021-11-04 16:38:17 -04:00
foamyguy
9c5bb649b5 add docs link to readme 2021-10-25 11:29:47 -05:00
dherrada
353b204f49 Globally disabled consider-using-f-string pylint check
Signed-off-by: dherrada <dylan.herrada@adafruit.com>
2021-09-24 13:19:46 -04:00
dherrada
3fd2bf41d4 Moved CI to Python 3.7
Signed-off-by: dherrada <dylan.herrada@adafruit.com>
2021-05-24 11:35:39 -04:00
dherrada
f975609a38 Added help text and problem matcher
Signed-off-by: dherrada <dylan.herrada@adafruit.com>
2021-05-19 15:15:51 -04:00
dherrada
87196f3411 Added pull request template
Signed-off-by: dherrada <dylan.herrada@adafruit.com>
2021-05-19 14:04:03 -04:00
Jeff Epler
4fe8d3d43e
Merge pull request #20 from adafruit/jepler-frequency-too-low
correct a too-low frequency= value
2021-03-29 08:47:36 -05:00
Jeff Epler
51cebdf55a correct a too-low frequency= value 2021-03-27 11:59:33 -05:00
Scott Shawcroft
adc3ae56d9
Merge pull request #17 from gamblor21/mov_operators
Add all mov operators
2021-03-24 08:39:35 -07:00
gamblor21
bb7c5717ab Add case of op and then space 2021-03-23 14:12:46 -05:00
Scott Shawcroft
645d49a054
Merge pull request #19 from adafruit/add-tests
Add tests
2021-03-23 10:13:41 -07:00
bf9ae4ee28 run tests during ci 2021-03-22 21:11:11 -05:00
55bee3f66c fix an error while raising an invalid instruction error 2021-03-22 21:09:54 -05:00
9861fd06ac add some tests 2021-03-22 21:09:33 -05:00
Limor "Ladyada" Fried
a072ab087b
Merge pull request #18 from adafruit/jepler-rxuart-example
rxuart: Receive-only 8N1 UART
2021-03-22 12:13:10 -04:00
d51f129541 rxuart: Receive-only 8N1 UART
based on an example in the RP2040 datasheet.

Tested at a blazing 9600 baud!
2021-03-22 11:02:42 -05:00
gamblor21
f3d4b2ff4c Black fix 2021-03-20 16:35:29 -05:00
gamblor21
1a5eed7263 Add all mov operators 2021-03-20 13:16:44 -05:00
dherrada
3046ca3b21 "Increase duplicate code check threshold
"
2021-03-19 13:48:29 -04:00
Scott Shawcroft
3ff94aa9da
Merge pull request #14 from adafruit/jepler-rotary-example
Add rotaryencoder example
2021-03-11 11:03:38 -08:00
5a7e52ced3 Add rotaryencoder example
This example requires https://github.com/adafruit/circuitpython/pull/4329 to be merged in order to work
2021-03-05 11:00:07 -06:00
Jeff Epler
74330ed3df
Merge pull request #9 from tannewt/audiobusio_examples
Add audiobusio examples and fix simple test frequency
2021-03-04 14:25:04 -06:00
Scott Shawcroft
2be7853ac4
Merge remote-tracking branch 'adafruit/main' into audiobusio_examples 2021-03-04 09:52:02 -08:00
Scott Shawcroft
342c1c1eae
Merge pull request #13 from FoamyGuy/pylintrc
pylintrc ignore imports
2021-03-04 09:49:42 -08:00
foamyguy
28a399ace7 pylintrc ignore imports 2021-03-04 07:52:06 -06:00
Kattni
c51d0c8da9
Merge pull request #12 from adafruit/jepler-examples-improvements
Fix the neopixel example
2021-03-02 11:12:18 -05:00
937357eab1 pioasm_neopixel: Adapt to various boards
On any board with a NEOPIXEL pin defined, use it.  Otherwise, arbitrarily
use D16 which is conveniently at a corner of the Pico board.

Send several different pixel colors so that the user can see it working.
2021-03-02 10:00:58 -06:00
dherrada
235dc408ec Removed pylint process from github workflow patch 2 2021-03-02 09:39:12 -06:00
Scott Shawcroft
94dccca5fb
Merge pull request #11 from adafruit/jepler-examples-improvements
Add some examples, improve the assembler
2021-02-25 14:19:48 -08:00
9399b4496a pylint 2021-02-25 16:08:42 -06:00
b5b8e35798 add blink example 2021-02-25 16:04:32 -06:00
d727e55a9d Explain why a needless jmp is here 2021-02-25 15:10:25 -06:00
b8e8c9279e Remove unneeded 'set pindirs', fix minimum frequency 2021-02-25 15:10:09 -06:00
8db157b7bb Explain where these examples come from 2021-02-25 15:03:14 -06:00
Scott Shawcroft
acb4fcb3f8
pylint: import order 2021-02-25 09:01:51 -08:00
9cf38ebea5 Pylint changes 2021-02-25 10:09:53 -06:00