- Notifications
You must be signed in to change notification settings - Fork18
Simple assembler to convert pioasm to bytes
License
adafruit/Adafruit_CircuitPython_PIOASM
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Simple assembler to convert pioasm to bytes
This driver depends on:
Please ensure all dependencies are available on the CircuitPython filesystem.This is easily achieved by downloadingthe Adafruit library and driver bundle.
Note
This library is not available on PyPI yet. Install documentation is includedas a standard element. Stay tuned for PyPI availability!
On supported GNU/Linux systems like the Raspberry Pi, you can install the driver locallyfromPyPI. To install for current user:
pip3 install adafruit-circuitpython-pioasm
To install system-wide (this may be required in some cases):
sudo pip3 install adafruit-circuitpython-pioasm
To install in a virtual environment in your current project:
mkdir project-name&&cd project-namepython3 -m venv .envsource .env/bin/activatepip3 install adafruit-circuitpython-pioasm
importtimeimportrp2pioimportboardimportadafruit_pioasmsquarewave=""".program squarewave set pins 1 [1] ; Drive pin high and then delay for one cycle set pins 0 ; Drive pin low"""assembled=adafruit_pioasm.assemble(squarewave)sm=rp2pio.StateMachine(assembled,frequency=80,init=adafruit_pioasm.assemble("set pindirs 1"),first_set_pin=board.LED,)print("real frequency",sm.frequency)time.sleep(120)
Contributions are welcome! Please read ourCode of Conductbefore contributing to help this project stay welcoming.
For information on building library documentation, please check outthis guide.
About
Simple assembler to convert pioasm to bytes
Topics
Resources
License
Code of conduct
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.