Commit graph

222 commits

Author SHA1 Message Date
5429dc1f59
accept 0x, 0b, 0o literals in most places numbers can be used
Closes: #30 (though I don't know what octal syntax is accepted by
official pioasm, we will accept python-style 0o567 not C-style 0567)
2022-04-24 20:06:24 -05:00
foamyguy
2f1af955c6 change discord badge 2022-04-24 14:05:25 -05:00
6c8a16ecef
update for PR in progress 2022-04-23 13:56:58 -05:00
evaherrada
871640f1b8
Patch: Replaced discord badge image 2022-04-22 15:59:08 -04:00
243b52bb41
add pulsegroup example 2022-04-22 14:28:15 -05:00
Eva Herrada
4267cf3f79
Update .gitignore 2022-04-21 18:53:16 -04:00
Dan Halbert
55c235d9c6
Merge pull request #35 from jepler/wrap
Add support for .wrap / .wrap_target pseudo instructions
2022-04-06 18:52:46 -04:00
8bd335f4be
add a wrap example 2022-04-06 08:47:49 -05:00
7110473f04
Merge remote-tracking branch 'origin/main' into wrap 2022-04-06 08:42:07 -05:00
16adbe4464
The core doesn't like sideset_pin_count=0, so don't send it 2022-04-06 08:41:58 -05:00
Alec Delaney
5aa37e1a46 "Reformatted per new black version" 2022-03-29 18:19:18 -04:00
Kattni Rembor
cac412615c Update Black to latest.
Signed-off-by: Kattni Rembor <kattni@adafruit.com>
2022-03-28 18:13:41 -04:00
Eva Herrada
95cfc1edb0
Rename rotaryencoder.py to pioasm_rotaryencoder.py 2022-03-24 18:37:07 -04:00
Eva Herrada
f8f6cec86a
Merge pull request #39 from adafruit/adabotify
Renamed examples/ subdirs to satisfy adabot
2022-03-24 18:26:54 -04:00
dherrada
5eec7e9958 Renamed more examples 2022-03-24 17:41:35 -04:00
dherrada
7389b2e34e Renamed examples/ subdirs to satisfy adabot 2022-03-24 16:36:58 -04:00
dherrada
b70f116f90 Fixed readthedocs build
Signed-off-by: dherrada <dylan.herrada@adafruit.com>
2022-02-15 11:56:03 -05:00
d16bd7e6a4
Add support for wrap/wrap_target
.. This also needs support in the core for specifying them in the
StateMachine constructor.
2022-02-13 13:22:03 -06:00
Jeff Epler
fde6fccaa0
adding this file lets 'python3 -munittest' in the top directory work 2022-02-13 13:17:34 -06:00
Alec Delaney
9bda24e83f Consolidate Documentation sections of README 2022-02-10 10:06:57 -05:00
Scott Shawcroft
ad782006ef
Merge pull request #37 from jepler/pretty-print-and-bugfix
Pretty print and bugfix
2022-02-02 12:05:41 -08:00
5736f5034b
Update testpioasm.py 2022-02-01 16:50:15 -06:00
ac5290f6c7
Add pretty-printing of PIO programs (into C for now) 2022-02-01 11:04:47 -06:00
2722649975
Fix name of parameter in pio_kwargs 2022-02-01 11:00:45 -06:00
dherrada
d32edfd8e7 Updated docs link, updated python docs link, updated setup.py 2022-01-24 16:46:17 -05:00
dherrada
e2d819e88c First part of patch
Signed-off-by: dherrada <dylan.herrada@adafruit.com>
2022-01-19 13:53:45 -05:00
Scott Shawcroft
00e621617e
Merge pull request #29 from jepler/program-object
Add `Program` class, type information
2022-01-12 10:51:46 -08:00
68a5881044
black 2022-01-12 08:43:33 -06:00
2a22758cf9
Change txuart example to use Program 2022-01-12 08:43:07 -06:00
666f4ef2c9
Merge remote-tracking branch 'origin/main' into program-object 2022-01-12 08:38:43 -06:00
Scott Shawcroft
fbafe006b0
Merge pull request #34 from dannystaple/mov_operators
Turns out, this dialect supports taking out spaces and the bang mark.
2022-01-10 10:47:01 -08:00
foamyguy
15e45fbfb0
Merge pull request #33 from dannystaple/patch-2
Add a link to the PIO tutorial
2022-01-08 13:02:00 -06:00
Danny Staple
1b7d7377ee Fix the CI failure 2022-01-08 15:56:48 +00:00
Danny Staple
c3fa9b65bd Turns out, this dialect supports taking out spaces and the bang mark. 2022-01-08 15:50:28 +00:00
Danny Staple
fcfaf5f628
Add a link to the PIO tutorial 2022-01-08 14:37:02 +00:00
Jeff Epler
3922cdd561
Merge pull request #32 from dannystaple/patch-1
Add helpful wrappers for errors
2022-01-02 09:22:05 -07:00
Danny Staple
df0662297d make my exceptions more consistent, and add tests. 2022-01-02 16:07:07 +00:00
foamyguy
5bfd52420e
Merge pull request #31 from gpshead/patch-1
Remove the "not available on PyPI yet" note.
2022-01-02 09:52:27 -06:00
Danny Staple
b065422813 Black reformat 2022-01-02 13:22:11 +00:00
Danny Staple
fa2b8689ce
Typo spotted after tweeting... Doh 2022-01-02 13:02:33 +00:00
Danny Staple
0381b30119
Fix the pylint, add in one other I've been using 2022-01-02 12:56:55 +00:00
Danny Staple
ac1cb9937d
Copied incorrectly 2022-01-02 12:09:21 +00:00
Danny Staple
e1e5e2a3ee
Add some helpful exception wrappers
These make errors easier to fix.
2022-01-02 12:07:24 +00:00
Gregory P. Smith
a2dd248c07
Remove the "not available on PyPI yet" note.
It appears to be obsolete given the validity of the link just below.
2022-01-01 14:26:55 -08:00
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