TinyBasicPlus is a lightweight BASIC interpreter tailored for microcontroller applications. This repository provides a dedicated port of TinyBasicPlus for the ATmega644xx series, leveraging the capabilities of the MightyCore platform. This project is aimed at hobbyists and developers seeking to integrate an interactive BASIC environment on their ATmega-based systems.
Current Release: 0.15.1
This version introduces some OEM commands and functions that enhance usability and provide extended capabilities for user programs. This sketch is pre-configured with:
- SD/MMC Card support (CS = 4)
- EEPROM support (ROM size auto detecting)
- TWI/I2C support (Included Wire.h)
Designed specifically for ATmega644xx series using MightyCore Bootloader.
Compact and efficient, ideal for low-resource environments.
Supports interactive BASIC programming with essential control and arithmetic functionality.
Expanded with custom commands tailored for versatile hardware operations.
This release introduces the following new commands and functions:
Screen Utils:
- CLS: Clear the terminal screen for better readability.
TWI/I2C utils:
-
BTWC: Begin TWI transmission with decimal address from 0 to 127. Usage: BTWC
-
TWW: Write data into TWI bus. Usage: TWW
-
ETWC: End the TWI transmission and get status code. No arguments, prints nothing on success
-
RTWD: Request total count of bytes from TWI bus. Usage: RTWD
Functions:
- TWR(): Read value from TWI bus. BUG: Doesn't work if you don't add a unneccesary value into the function!
Prerequisites:
- Arduino IDE (Version 1.8 or later recommended).
- Install MightyCore in your Arduino IDE.
- An ATmega644xx microcontroller.
Steps:
-
Clone or download the repository. git clone https://github.com/Saveriokarol/tinybasicplus-m644-port.git
-
Open the .ino file in the Arduino IDE. Configure the board settings for MightyCore (Ext. 16MHz, 5V).
-
Upload the program to your ATmega644xx microcontroller.
Once installed, connect to the microcontroller using a serial terminal (e.g., Arduino Serial Monitor or PuTTY). The interpreter is ready to execute BASIC commands interactively. Try the new commands and explore hardware interaction with ease.
Contributions to improve this port or add new functionality are welcome! Please submit an issue or pull request to collaborate.
This project is open-source and available under the MIT License. See the LICENSE file for details.
Special thanks to: MightyCore for providing robust ATmega support. The original creators of TinyBasicPlus for their inspiring work.