Commit graph

228 commits

Author SHA1 Message Date
0635463a78 disable a pylint diagnostic 2021-02-25 10:03:57 -06:00
0d56e195f4 run black 2021-02-25 10:01:23 -06:00
3ad9fae9f7 assemble: better diagnose jump to undefined label 2021-02-25 09:19:35 -06:00
ebdf4e3d6b assemble: Diagnose duplicate labels
Closes #10
2021-02-25 09:19:25 -06:00
72c2324ff5 Adapt first example from the Micropython book 2021-02-25 08:44:11 -06:00
3a64ca716b hello pio example 2021-02-24 10:09:06 -06:00
Scott Shawcroft
2adf61aae5
Add audiobusio examples and fix simple test frequency
This also uses newer pin auto-init.
2021-02-23 16:39:55 -08:00
Scott Shawcroft
a631797c0a
Merge pull request #8 from jepler/commas
split instructions on commas and whitespace
2021-02-12 11:06:28 -08:00
bfbd002c24 run black 2021-02-12 09:44:54 -06:00
f25d17af8e split instructions on commas and whitespace
All of the following now parse as `["mov", "pins", "1"]` and assemble to
0x6001:
```
out pins , 1 ;
out pins, 1  ;
out pins,1   ;
out pins ,1  ;
out pins 1   ;
```

This brings pioasm closer to what upstream's examples show

Closes: #7
2021-02-12 09:02:12 -06:00
dherrada
f227a506d2 Hardcoded Black and REUSE versions
Signed-off-by: dherrada <dylan.herrada@adafruit.com>
2021-02-10 16:33:35 -05:00
Scott Shawcroft
cf81c94093
Merge pull request #5 from dglaude/patch-1
Fix for "; comment only lines"
2021-02-03 19:18:48 -08:00
Scott Shawcroft
4ceb54bdef
Black 2021-02-03 18:56:17 -08:00
Scott Shawcroft
897358415d
Update adafruit_pioasm.py 2021-02-03 13:32:10 -08:00
David Glaude
ef66ca9010
Remove print in library.
library should not print
2021-02-02 21:48:54 +01:00
Scott Shawcroft
61c8964705
Update adafruit_pioasm.py 2021-02-02 10:36:18 -08:00
Scott Shawcroft
e0c625ca5f
Merge pull request #6 from LuminousOwl/fix-mov-op
Shift mov operator
2021-02-01 19:15:45 -08:00
luminousOwl
c4fbe187ab Shift mov operator 2021-02-01 19:12:36 -05:00
Scott Shawcroft
be730f2e01
Merge pull request #3 from LuminousOwl/fix-pull-parsing
Fix pull instruction parsing
2021-01-31 20:14:17 -08:00
David Glaude
f70126c059
My fix for "; comment only lines"
This should fix #4 but there might be a better way.
2021-02-01 00:28:05 +01:00
luminousOwl
e089e82e26 Fix pull instruction parsing 2021-01-30 12:16:48 -05:00
Scott Shawcroft
9fa2cc92e8
Merge pull request #2 from ryang14/patch-1
Fix wait source encoding
2021-01-25 17:54:25 -08:00
ryang14
e4f2740f40
Fix wait source encoding
Change the wait instruction encoding to shift the source by 5 bits instead of 4.
2021-01-25 20:44:49 -05:00
Scott Shawcroft
25618d8385
Merge pull request #1 from tannewt/fix-ci
All the linty things to fix CI
2021-01-21 16:11:34 -08:00
Scott Shawcroft
7dc5992975
Example lint and doc TODOs 2021-01-21 15:50:02 -08:00
Scott Shawcroft
7fc8625aea
Lint 2021-01-21 15:35:45 -08:00
Scott Shawcroft
5e8b820a52
Black 2021-01-21 15:26:20 -08:00
Scott Shawcroft
4cd0064413
Add initial PIOASM code 2021-01-21 10:01:11 -08:00