slviajero / tinybasic

A BASIC interpreter for Arduino, ESP, RP2040, STM32, Infineon XMC and POSIX with IoT and microcontroller features.
GNU General Public License v3.0
203 stars 31 forks source link

Running code from micro sd cards? #61

Closed vrdriver closed 7 months ago

vrdriver commented 9 months ago

Hi, I love this concept of running basic on an Arduino. Is there presently any way of loading programs that are stored on an sd card and running them that way? Have I misread the concept of this project, or does it all have to by typed in? Sorry to be a bother Steve.

slviajero commented 9 months ago

sure! in hardware.h set the ARDUINOSD macro. only good if you have enough memory. most boards like the nano every, mega, r4 are ok.Sent from my iPhoneOn Dec 10, 2023, at 4:50 AM, Steve @.***> wrote: Hi, I love this concept of running basic on an Arduino. Is there presently any way of loading programs that are stored on an sd card and running them that way? Have I misread the concept of this project, or does it all have to by typed in? Sorry to be a bother Steve.

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: @.***>

vrdriver commented 9 months ago

Hey thanks! I'll take a look at it. I have a UNO and a MEGA, so maybe I'll be able to get things running on the MEGA.

And, I'm guessing this is in the right direction then too? https://github.com/slviajero/tinybasic/wiki/Peripherals:-SD-Cards,-SPIFFS,-littleFS,-EEPROM,-and-IO-channels.#sd-cards

If so, I should be good to go! :)

slviajero commented 9 months ago

Yes! There are a few tricks. If you run in trouble, tell me. Some SD cards have odd timing problems.

slviajero commented 7 months ago

Closed, already implemented.