Tiny Basic for Arduino
dilshan.github.io
dilshan.github.io
While this is fun, I'm not sure why anyone would choose Basic over CircuitPython or MicroPython [1] if they're trying to program a modern micro with a beginner friendly language.
[0] https://www.parallax.com/products/basic-stamp-2-microcontrol...
[1] https://learn.adafruit.com/getting-started-with-raspberry-pi...
And the Due is 14 years old and kind of overpriced - there are much better options available nowadays. (For instance, there are a ton of boards based on the Raspberry Pi RP2040 and RP2350, both of which will run circles around the Due.)
This one was quite impressive:
It provides a compiler and interpreter, like most BASICs that were not constrained by 8 bit home micros hardware restrictions.
I think we can safely move on. Even the Arduino Due is pretty old. The full name they used to use of "Duemilenove" for the AVR chip boards literally means 2009.
Isn't copied to the RAM either, the main MCU is a normal PIC with 72 bytes of memory. So a Due has 1000x RAM also.
But if you just need to detect some switch and blink some lights, they are fine. BASIC is easy to learn and more than enough for some things. I've heard Basic Stamps are still around in some places, like Disney world.
Source (8080) available on github [0]
Others: [1]
I forgot how I first loaded it. Doubtful that I typed it in, but I do recall getting a paper tape from somewhere and loading it via a cheap optical reader.
Life got interesting when I got a NorthStar disk for the IMSAI. And ever after.
[0] https://github.com/kevinthecheung/tiny-basic
[1] https://en.wikipedia.org/wiki/Tiny_BASIC
[2] http://cini.classiccmp.org/pdf/DrDobbs/DrDobbs-1976-05-v1n5....
Firefox will complain about http. Allow download. I checked it, it's real pdf.
You can get BASIC down much smaller than that. I'm pretty sure there were some that were 3K or less to run on KIM, 4004, and similar machines.
I have a memory of an 8008 or 8080 version that was 3K, leaving 1K of RAM for programs.
It has support for much of PICO's I/O capability including network connectivity. It is VERY easy to work with and has excellent documentation.
AND it is a free download with an active community.
I mean, crap like this means we need 1GB for a weather app and 4GB RAM for a simple text editor.
This TinyBASIC however, is using Python only during the build phase, the actual interpreter code is in C and what runs on the Arduino is a binary.