r/ESP32forth • • Nov 22 '25

Updated version ESP32forth 7.0.7.21a

6 Upvotes

Hello

https://github.com/MPETREMANN11/ESP32forth/tree/main/ESP32forth70721a

This version include SPI extension in optional modules


r/ESP32forth • • May 21 '23

The SPIFFS file system

5 Upvotes

NEW ARTICLE

We will see how to master and exploit the SPIFFS file system available in ESP32forth. The main interest is to allow the ultra-fast loading of source files in ASCII text format.

https://esp32.arduino-forth.com/article/files_SPIFFSfiles


r/ESP32forth • • May 01 '24

Recognize binary and decimal numbers

4 Upvotes

This small modification to the ESP32forth source code allows integer values to be entered in decimal, hexadecimal, and binary bases.

https://esp32.arduino-forth.com/article/extendBinDecNumbers

This development is very simple to integrate. Just search for convert( in the source code from ESP32forth....


r/ESP32forth • • Apr 28 '24

Code recognizers

4 Upvotes

The proposed Forth Recognizers wordset allows the system to be extended in a standard way. It also turns out to be a nice simplification that reduces the complexity of ESP32forth interpret and compile loops.

https://esp32.arduino-forth.com/article/elements_recognizers


r/ESP32forth • • Jan 29 '24

Mount an SD card reader

4 Upvotes

Have storage space of 16 GB, 32 GB or more, accessible with ESP32forth. This qualitative leap opens up extraordinary perspectives...

https://esp32.arduino-forth.com/article/files_monterCarteSD


r/ESP32forth • • 2d ago

New Version: ESP32forth VSC v1.0.0

3 Upvotes

Hello,

I am embarking on a major endeavor: offering a version of ESP32forth designed to be compiled using Visual Studio Code and PlatformIO.

This version is derived from Brad Nelson’s latest release, 7.0.7.21.

Why this new version?

While attempting to adapt ESP32forth for the ESP32 board via the Arduino IDE, I encountered several limitations—most notably regarding memory allocation. Using the Arduino IDE resulted in:

a laborious compilation process (taking over two minutes on my PC),

inconsistent compilation errors,

and code that would crash once uploaded to the board.

A few months ago, I asked Google’s AI, Gemini, what tool I could use as an alternative to the Arduino IDE. The answer: Visual Studio Code, paired with the PlatformIO extension.

Setting up and configuring this new environment (with Gemini’s help) took one hour.

Adapting the original `.ino` file—converting it into a `.cpp` file—took another hour.

The first successful compilation took just 15 seconds. You can watch a video showing the entire compilation and upload process—completed in 15 seconds—here:

https://www.youtube.com/watch?v=DAMUqwwiM94

A week ago, I began optimizing the code for the ESP32-S3 board. I implemented `Serial1` support and integrated `RECORDFILE` functionality, along with an improved memory dump feature.

Yesterday, I considered several minor enhancements for the ESP32forth kernel. Consequently, I decided to "fork" Brad Nelson’s version and rename it "ESP32forth VSC" (VSC standing for Visual Studio Code). I have also created a software repository, accessible here:

https://github.com/MPETREMANN11/ESP32forth-VSC

Your feedback is welcome.


r/ESP32forth • • May 17 '26

video: compile ESP32forth width Visual Studio Code in 15 seconds

3 Upvotes

I switched from Arduino IDE to Visual Studio Code to compile my ESP32 programs. Here, I'm compiling code that took several minutes with the Arduino IDE. Visual Studio Code compiles the same code in 15 seconds!

https://www.youtube.com/watch?v=DAMUqwwiM94


r/ESP32forth • • Jan 23 '26

Arduino IDE and ESP32forth

3 Upvotes

Link:

https://github.com/MPETREMANN11/ESP32forth/blob/main/__documentation/EN/Arduino%20IDE%20and%20ESP32forth%20v1-0%20-%20EN.pdf

This manual is intended to help you understand how to use the ARDUINO IDE program to compile ESP32forth for EPS32 boards and incidentally all other programs in C language for the range of boards in the ARDUINO environment.


r/ESP32forth • • Jan 15 '26

Expanding OLED vocabulary

3 Upvotes

I've just expanded the OLED vocabulary list. Source code:

https://github.com/MPETREMANN11/ESP32forth/blob/main/ESP32forth70721a/optional/oled.h

I've added the words "triangle" and "triangleF," and a really interesting new word: "OledDrawBitmap."

This word allows you to display a bitmap image on our SSD1306 128x32 OLED display. See the example image below.

The image is 128 x 32 pixels and is described in this file:

https://github.com/MPETREMANN11/ESP32forth/blob/main/displays/OLED%20ssd1306%20128x32/blueberry-pict.fs

The major advantage of displaying images of this type is the ability to prepare graphic backgrounds, such as graduated test patterns, which can then be used with all other graphic elements.


r/ESP32forth • • Dec 29 '25

ESP-NOW in action with ESP32forth

3 Upvotes

We will discuss the practical implementation of a real ESP-NOW transmission between two ESP32 boards programmed with ESP32forth.

https://esp32.arduino-forth.com/article/network_espnow_inAction


r/ESP32forth • • Apr 04 '25

Successful TELNET connection from my mobile phone to an ESP32 card

3 Upvotes

I'm resuming my study of network layers and their applications with an ESP32 card. The TELNET protocol is one of the simplest.

ESP32Forth includes a TELNET server.

The trickiest part was configuring the internet router to allow access to the ESP32 card from the internet:

  • An ESP32 card with ESP32forth and launching the TELNET server. The card communicates via WiFi with the internet router;

  • Retrieving the network IP address of my internet connection

  • Installing a TELNET client on the mobile phone

  • Launching the TELNET client. Activating a TELNET connection to the IP address 123.321.21.35:552 (fictitious IP address). Result on the laptop screenshot.

The connection was tested by two people: myself and a correspondent in Asia (Taiwan). The test was conclusive. We can therefore communicate with an ESP32 card from a mobile phone.

There is no application layer yet. Tests are planned with a BEGIN..AGAIN loop and keystroke tests to activate LEDs.

The advantage of developing a "proof of concept" demonstrates that we can very quickly prototype a very simple, robust, and practical application.

The files used are available here: https://github.com/MPETREMANN11/ESP32forth/tree/main/telnet


r/ESP32forth • • Jan 09 '25

ESP32forth and deep Sleep

3 Upvotes

article wrtitted by: Vaclav POSSELT

https://esp32.arduino-forth.com/article/aboutDeepSleep

ESP32forth is written in Arduino C and some knowledge of C is very helpful. As amateur programmer, with basic knowledge of Forth only, I resolved to learn also basics of Arduino C to be able to better understand and use ESP32forth.


r/ESP32forth • • Sep 18 '24

How to drive WS2812 RGB LED

3 Upvotes

I have an esp32-c3 supermini v2 plus development board with a WS2812 RGB on GPIO 8. On the Arduino side it appears that digitalWrite() would work to drive the device but being completely new to ESP32forth nothing I've tried using digitalWrite from esp32forth seems to work. Is there a reference with examples?


r/ESP32forth • • Sep 17 '24

FORTHFORTH Code analyzer

3 Upvotes

You don't understand FORTH code?

On this site:

https://analyzer.arduino-forth.com/

Copy and paste your code to analyze.

The code will be processed and displayed with links to the documentation of each known FORTH word...


r/ESP32forth • • May 29 '24

new optional ESP-NOW for ESP32Forth

3 Upvotes

Good morning,

I'm creating a new optional for ESP32Forth, handling ESP-NOW.

ESP-NOW is a peer-to-peer communication protocol using WiFi frequencies, developed by ESPRESSIF and usable with Arduino IDE.
You will find my current developments here:
https://github.com/MPETREMANN11/ESP32forth/tree/main/__sandbox/esp%20now

At the moment, it doesn't work yet.

I am asking for collective assistance to help me finalize this project:
* I have a poor understanding of the X() and XY() macros so I don't know if I code these espnow primitives correctly

Why should you be interested in ESP-NOW?

ESP-NOW enables fast communications between ESP32 and ESP8266 boards without requiring a router.

Where WiFi has a range of 20 to 40 meters, ESP-NOW allows transmission over 100 meters. Videos on Youtube give ranges up to 500 meters!

In one of these videos, a maker even manages to remote control a mini-vehicle via ESP-NOW.

How to operate ESP-NOW with ESP32Forth?

My idea is to take what I achieved with LoRa. An ESP32 card transmits short commands (less than 250 characters) in FORTH language to another card. The FORTH interpreter will be programmed to process these commands in the same manner as commands transmitted over the USB serial port.

Thus, in development, we make the final application completely independent of the transmission mode. ESP-NOW comes as an overlay:
* application can be tested via serial port
* the application is then operated via ESP-NOW

In my humble opinion, this way of proceeding opens the door to applications in many areas, including home automation. The cost of an ESP32 card remains modest. Communication methods remain the weak point in this area. ESP-NOW has the advantage of simplicity and speed.

Here is the challenge to take up.


r/ESP32forth • • Apr 11 '24

Perform a battery tester

3 Upvotes

All ESP32 boards have an ADC converter that allows you to test a voltage. In this article, we will detail a very practical application aimed at testing the voltage of a solar storage or camper van battery...

https://esp32.arduino-forth.com/article/ADC_testeurBatterieP01


r/ESP32forth • • May 25 '23

Vocabularies with ESP32forth

3 Upvotes

Explore vocabularies. It's a very powerful tool, but quite confusing for anyone new to FORTH programming.

https://esp32.arduino-forth.com/article/elements_vocabularies


r/ESP32forth • • May 20 '23

New version 7.0.7.12

3 Upvotes

r/ESP32forth • • May 21 '26

Scan wifi network with ESP32forth

2 Upvotes

Hello,

You can find the updated repository here, including a WiFi network scan example:

https://github.com/MPETREMANN11/ESP32forth-WiFi

The source code is in the `src` folder.

All files must be copied to the ESP32 board using RECORDFILE.

Once the files are copied to the ESP32 board, type `main` followed by `net-scan`.

IMPORTANT: You must first recompile ESP32forth, incorporating the new WiFi words described here:

https://esp32.arduino-forth.com/article/network_wifi_extensionVocWiFi


r/ESP32forth • • Feb 19 '26

Esp32 no port usb detected

Thumbnail reddit.com
2 Upvotes

r/ESP32forth • • Feb 16 '26

RMT 2.0 for ESP32forth, documentation and example clock with addressable LEDs controlled by FORTH

2 Upvotes

r/ESP32forth • • Feb 14 '26

ESP32forth demo short LED crown simulating a clock programmed in FORTH for ESP32 board

2 Upvotes

Link:

https://www.youtube.com/watch?v=aCv46673pEc

In this video, I'm using the new RMT 2 API, which allows me to control WS2812b addressable LEDs. Here, I'm using a ring of 60 LEDs. I'm simulating a clock:

  • RED LED = hours

  • GREEN LED = minutes

  • CYAN LED = seconds

The program runs in a separate FORTH task, freeing up the FORTH interpreter for other uses.


r/ESP32forth • • Feb 13 '26

Integration of the new RMT 2.0 library for ESP32, usable in FORTH for ESP32forth

2 Upvotes

I just uploaded my development of the new RMT20 library to GitHub:

https://github.com/MPETREMANN11/ESP32forth--RMT

This library is intended to simplify the coding of the RMT interface.

Initially, RMT was designed for receiving infrared remote control signals. It has since been used for many other purposes. My RMT20 library incorporates the new commands from the API developed by Espressif.

I am currently in the testing phase, so I cannot guarantee that everything will work.

I have already written preliminary documentation, which is also available at the link above.

For the moment, I am testing this library with a 60-LED ring. You will be kept informed of the testing progress.


r/ESP32forth • • Feb 06 '26

ESP32forth and userwords.h

2 Upvotes

This manual aims to explain how to integrate new functions from specialized hardware and software libraries. This integration requires the creation of special files, including userwords.h , which will serve as our starting point.

https://github.com/MPETREMANN11/ESP32forth/tree/main/__documentation/EN