Well continuing on from my last post with an Arduino Nano running TinyBASIC with it 1k of memory I’ve gone one step further and picked up an STM8 BASIC dev board (STM8S103F3 Microcontroller) which is running BASIC and has 611 bytes free.
STM8 BASIC
After wiring up a USB to serial connection following the simple instructions and firing up my serial terminal I was greeted with a really simple user interface.
Embedded BASIC
Coding is pretty simple as you would expect with the BASIC language and within a few minutes I had wired up a simply LED to PA3 and coded the simple yet effective blinking LED demo.
10 REM BLINK LED port A (PA3)
15 CLS
20 POKE $5002,$FF
30 POKE $5000,$FF
40 PRINT "LED ON"
50 SLEEP 1
60 POKE $5000,0
70 PRINT "LED OFF"
80 SLEEP 1
90 GOTO 20