title | keywords | |||||
---|---|---|---|---|---|---|
ForthDeck |
|
The purpose of this project is to build a general purpose, interactive computer out of an rp2040, while learning practical programming using the Forth language.
file: gpio.fs
Given a pin number, return the pin's address on the IO bank.
13 pin
Given a pin address, leave the number of the currently selected pin function on the stack.
13 pin funcsel@
Given a pin address and a function number (see GPIO pin constants), set the selected pin's function.
13 pin SIO funcsel!
Display a list of all GPIO pins and their currently selected function.
pins
Given a pin number, enable or disable that pin for output.
13 output-enable
13 output-disable
Given a pin number, leave a flag on the stack indicating whether or not output is enabled.
13 output-enabled?
Display a table of pins and their output status.
output-enabled.
file: terminal.fs
- Timers
- Blocks
- SPI
- U2F image