slviajero / tinybasic

A BASIC interpreter for Arduino, ESP, RP2040, STM32, Infineon XMC and POSIX with IoT and microcontroller features.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Allow the user to assign an autorun pin

twoporylyj opened this issue · comments

Greetings. For now, we have the following in the manual:

"SET 1,1 activates the autorun mode of the EEPROM. SET 1,0 resets the autorun mode. SET 1,255 marks the EEPROM as not to contain a program. SET 1,1 should only be used if a program was stored with SAVE "!" to the EEPROM. There is no safety net here"

This problem can be solved by allowing the user to assign an autorun pin, so that program from EEPROM starts automatically only if that pin is grounded at startup or reset, otherwise the user gets a Basic interpreter prompt in the terminal and can edit and run the program manually. Thanks.

Thanks, will try this.

Cool!
10 print &2,"abcd"
20 goto 10
run
It began printing "abcd" on HD44780 in endless loop. Then i pressed # without even pressing enter, and program stopped. Thanks.
So there actually exists a safety net?

But is case of error i can push restart button and send # again?

Closed