Download data/examples/00tutorial/putget.bas from introvoyz041/tinybasic: direct link, hf CLI and curl.
- Browser
- Download file 311 Bytes
-
https://huggingface.co/datasets/introvoyz041/tinybasic/resolve/main/data/examples/00tutorial/putget.bas
- Command line
-
hf download hf://datasets/introvoyz041/tinybasic/data/examples/00tutorial/putget.bas
-
curl -L -o putget.bas https://huggingface.co/datasets/introvoyz041/tinybasic/resolve/main/data/examples/00tutorial/putget.bas
311 Bytes
| 10 REM "Demo of the PUT and GET command" | |
| 20 REM "" | |
| 100 PUT "H", 101, "l", 108, "o", 32, "W", 108, "r", 108, "d", 10 | |
| 110 PRINT "Press any key to continue" | |
| 120 REM "GET is non blocking in Arduinos and blocking in POSIX" | |
| 130 GET C : IF C=0 THEN GOTO 120 | |
| 140 PRINT "Key '"; | |
| 150 PUT C | |
| 160 PRINT "' pressed" | |
| 170 END | |