Presentation of AVR-FORTH
published: 1 November 2020 / updated 1 November 2020
The AVR-FORTH version for ARDUINO is available here:
A simple token-threaded implementation of Forth for the Arduino
This is a work in progress :)
To build:
- open the Arduino software IDE
- load this file
- select a port and target Arduino board
- press the [Verify] or [Upload] button
To run:
- build it as above, using [Upload]
- open the Serial Monitor (ctrl-shift-m)
- type a forth command (eg - 1 2 3 + + .s .)
Notes:
There is no support at this time for creating words. I am working on that ... for now this only works via the Serial Monitor
To turn on the LED at pin 13, do this:
13 1 pin
13 0 pin \ this turns off the LED