Code Monkey home page Code Monkey logo

m5cardforth's Introduction

M5CardForth (alpha)

[EN|日本語]

M5CardForth

Summary

A simple console for M5Cardputer + ESP32forth.

The current release is alpha.

The following components are roughly combined:

Build / flash the project with Platformio.

Console

At startup, the console reads from the USBSerial input. Open PlatformIO : Serial Console and type on your computer. To use the M5Cardputer keyboard, type m5key-on.

The following words can be used to switch the console I/O : m5key-on m5key-off m5type-on m5type-off

Using M5Cardputer standalone

To use the M5CardForth standalone, without serial, follow the steps:

  1. Do either:
  • Turn M5Cardputer power switch on, or,
  • press and relase the button BtnRst (at the top-left of M5Cardputer).
  1. Immediately after you complete Step 1, press BtnG0 (top-right).
  2. After prompt ok is displayed, you may release BtnG0.

Both the M5Cardputer keyboard and console output will be enabled.

Cardputer keyboard

Supported keys:

  • Alphanumeric and symbols
  • Shift
  • Enter and BS

The ctrl/opt/alt/fn/esc keys do not work.

Sample programs

forth/fastLed.fs

forth/lgfx.fs

forth/M5StampS3-gpio.fs

Additional words

In addition to ESP32Forth standard words, several new words are defined to access the M5cardputer features. Currently under development, the specs will be changed in the future.

-> (See this page)

SD Card support

Use the ESP32Forth SD vocabulary.

SDUsage

Example: block editor

sd
sd.begin
use /sd/myblk
s" /sd/myblk" open-blocks
editor
0 a : hi ." Howdy!" ;
update
save-buffers
0 load hi

Note visual editor does not work with SD.

Using /spiffs/autoexec.fs

You may copy forth/autoexec.fs to /spiffs/autoexec.fs (via an SD card), then the contents of the file will be automatically executed at startup. Type the following to run a demo.

m5demo
go2

Todo

  • switch between Cardputer console and serial ✅
  • rgb led ✅
  • backspace ✅
  • graphics ✅
  • sd card ✅
  • sound
  • mic
  • (ir)
  • (clock)
  • (wifi)

Have fun.

m5cardforth's People

Contributors

ryu10 avatar

Stargazers

igor avatar Serge Zaitsev avatar Michele Campeotto avatar Steffen Dienst avatar Andy Piper avatar extrowerk avatar  avatar Fortisq avatar Martin D Stables avatar Vijay Soni avatar Ezer avatar PAlbee avatar Joe Pfeiffer avatar Justin "J.R." Hill avatar Thom Green avatar  avatar  avatar RetroTechResto avatar  avatar  avatar canotun avatar  avatar

Watchers

 avatar

Forkers

lasamflir

m5cardforth's Issues

error message

I have compiled and uploaded but get error message 👍
ERROR: ( NOT FOUND!

Any suggestions

installation

Please explain as to how this may be installed on the M5Cardputer.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.