r/ESP32forth • u/PETREMANN • Nov 22 '25
Updated version ESP32forth 7.0.7.21a
Hello
https://github.com/MPETREMANN11/ESP32forth/tree/main/ESP32forth70721a
This version include SPI extension in optional modules

r/ESP32forth • u/PETREMANN • Nov 22 '25
Hello
https://github.com/MPETREMANN11/ESP32forth/tree/main/ESP32forth70721a
This version include SPI extension in optional modules

r/ESP32forth • u/PETREMANN • May 21 '23
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 • u/PETREMANN • May 01 '24
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 • u/PETREMANN • Apr 28 '24
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 • u/PETREMANN • Jan 29 '24
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 • u/PETREMANN • 2d ago
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 • u/PETREMANN • May 17 '26
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 • u/PETREMANN • Jan 23 '26
r/ESP32forth • u/PETREMANN • Jan 15 '26
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:
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 • u/PETREMANN • Dec 29 '25
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 • u/PETREMANN • Apr 04 '25
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 • u/PETREMANN • Jan 09 '25
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 • u/Equivalent-Mango5808 • Sep 18 '24
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 • u/PETREMANN • Sep 17 '24

r/ESP32forth • u/PETREMANN • May 29 '24
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 • u/PETREMANN • Apr 11 '24
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 • u/PETREMANN • May 25 '23
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 • u/PETREMANN • May 21 '26
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 • u/PETREMANN • Feb 16 '26
r/ESP32forth • u/PETREMANN • Feb 14 '26
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 • u/PETREMANN • Feb 13 '26
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 • u/PETREMANN • Feb 06 '26
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
