Skip to content

Version 0.0.3

Latest

Choose a tag to compare

@Nicholas1023 Nicholas1023 released this 04 Jul 01:17

Macro Microcontroller BASIC Interpreter V0.0.3

A BASIC interpreter written in C for Macro Microcontroller, providing a simple coding environment via the serial terminal. You may view a demo at Assets/firmware-demo.mp4.

What's New:

New REM statement to add support for comments in your program:

10 REM "Prints a statement"
20 PRINT "Hello!"

Full Changelog: v0.0.2...v0.0.3

Statements:

  1. PRINT: Outputs text to the serial terminal.
  2. LET: Assigns a value (integer, float or string) to a variable (Only one variable is allowed for now).
  3. INPUT: Assigns a value (integer, float or string) to a variable via user input.
  4. GPIO: Turns on a specified GPIO pin for 1 second.
  5. LSVAR: Outputs variable name and their value to the serial terminal.
  6. END: Clears variable and reset line numbers.
  7. EXIT: Puts the device into sleep/power off mode.
  8. KEY: Pass GPIO controls to the macropad.
  9. REM: Add comments to your program.

To install Macro Microcontroller BASIC Interpreter, hold the boot button and drag macro-microcontroller-basic-0.0.3.uf2 into the board's storage drive.

Attribution

Macro Microcontroller BASIC compiles source code from the Pico SDK. See Firmware Files/pico_sdk_import.cmake for the Pico SDK license and copyright notice.