Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wokwi/pioasm-wasm
Raspberry Pi Pico pioasm compiled to Web Assembly
https://github.com/wokwi/pioasm-wasm
pi-pico pio raspberry-pi-pico web-assembly
Last synced: 3 months ago
JSON representation
Raspberry Pi Pico pioasm compiled to Web Assembly
- Host: GitHub
- URL: https://github.com/wokwi/pioasm-wasm
- Owner: wokwi
- License: other
- Created: 2021-06-03T14:18:43.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-06-23T13:27:11.000Z (over 3 years ago)
- Last Synced: 2024-10-31T09:50:17.974Z (3 months ago)
- Topics: pi-pico, pio, raspberry-pi-pico, web-assembly
- Language: JavaScript
- Homepage: https://wokwi.com/tools/pioasm
- Size: 16.6 KB
- Stars: 17
- Watchers: 4
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pioasm-wasm
Raspberry Pi Pico pioasm tool compiled to Web Assembly.
## Online pioasm
The online version of pioasm allows you to compile PIO assembly code to C/Python/Ada right in your browser:
https://wokwi.com/tools/pioasm
## Library usage example
You can install the library from npm:
```
npm install --save pioasm
```or yarn:
```
yarn add pioasm
```Usage example:
```javascript
import { PIOAssembler } from 'pioasm';const source = `
.program blink
pull block
out y, 32
`;const pioasm = new PIOAssembler();
pioasm.assemble(source).then(result => {
console.log(result.output);
})
```## License
This project, excluding pioasm, is released under the MIT license. Consult [the LICENSE file](LICENSE) for more details.