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

Feature request - Basic embedded in MycroPython #54

Closed Tangerino closed 7 months ago

Tangerino commented 1 year ago

One interesting use case for the BASIC interpreter is to be integrated as part of Micropython project.

A subset of the language is enough, exemple: No I/O. So an end user can upload its own custom code to an IOT device and perform custom actions.

This is safe, fast, small and not expose any hardware capability.

Imagine a control system, where the input is a temperature sensor and output is a 1 or 0 to be sent to an actuator.

What is inside the BASIC function is the customer property.

slviajero commented 1 year ago

Interesting idea. But how should this look like in practice? I am not familiar with the MicroPython project. My interpreter can be integrated into any environment by creating a hardware-xxx.h file. This file needs to implement the necessary I/O functions . It also needs a thread that calls setup() once and then loop() permanently. So, generally speaking, everything is prepared to embed it in a function.

Am 18.05.2023 um 13:31 schrieb Carlos Tangerino @.***>:

One interesting use case for the BASIC interpreter is to be integrated as part of Micropython project.

A subset of the language is enough, exemple: No I/O. So an end user can upload its own custom code to an IOT device and perform custom actions.

This is safe, fast, small and not expose any hardware capability.

Imagine a control system, where the input is a temperature sensor and output is a 1 or 0 to be sent to an actuator.

What is inside the BASIC function is the customer property.

— Reply to this email directly, view it on GitHub https://github.com/slviajero/tinybasic/issues/54, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACSY56EY2MFHZF3S6OBV47TXGYCBNANCNFSM6AAAAAAYGK2HXA. You are receiving this because you are subscribed to this thread.

slviajero commented 7 months ago

Closed, could not be specified more accurately.

slviajero commented 7 months ago

Closed.