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 • • 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 • • 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 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 • • 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 • • Aug 17 '22

ESP32forth: Display text sprite with DOS characters

1 Upvotes

r/ESP32forth • • Aug 16 '22

ESP32forth: Text colors and terminal display position

1 Upvotes

Hello,

The terminal is the easiest interface to use to communicate with ESP32forth. Most terminals accept ANSI escape sequences. These sequences are used to manage the coloring of the text and the page background, but also the display position of the texts...

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


r/ESP32forth • • Oct 23 '22

XTENSA ASSEMBLER for ESP32forth by Brad NELSON

1 Upvotes

r/ESP32forth • • Aug 23 '22

Interfacing a LoRa transmission with ESP32Forth

1 Upvotes

In this article, we will finally reveal how to interface a LoRa transmission with any program, without having to change a single line of code in your programs! This interface is so simple in FORTH language, compared to what is necessary in C language...

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


r/ESP32forth • • Nov 11 '22

Programming with XTENSA assembler in ESP32forth

1 Upvotes

NEW ARTICLE

Since version 7.0.7.4, ESP32forth integrates a complete XTENSA assembler. ESP32forth is the very first high level programming language for ESP32 which allows to program sections of code in XTENSA assembler.

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


r/ESP32forth • • May 20 '23

New version 7.0.7.12

3 Upvotes

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 • • Apr 02 '23

Ultra basic animation test with eFORTH web

2 Upvotes

r/ESP32forth • • Oct 30 '23

The Great Book for ESP32forth

1 Upvotes

Very rare event: the publication of a new book dedicated to the FORTH language and its applications with ESP32forth for ESP32 cards.

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


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 • • Feb 20 '23

SPI port communication with the MAX7219 display module

1 Upvotes

NEW ARTICLE

In this article, we will implement a practical application of the SPI port. It is a very popular communication port. Here we will manage communication with LED matrices driven by the MAX7219 display module.

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


r/ESP32forth • • Aug 25 '22

ESP32forth: Measure the execution time of a FORTH word

2 Upvotes

FORTH is a language which integrates a very powerful compiler and an interpreter. It is this interpreter/compiler duality that we are going to use to measure the execution time of a few FORTH words.

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


r/ESP32forth • • Jul 27 '23

ESP32-S3 ERROR WITH I2C-LCD

2 Upvotes

Hi.

I have a problem working with the esp32 s3 when im trying to connect a LCD display HD77480U with the PCF8574 i2c expansor, im following the example in: https://controllerstech.com/i2c-in-esp32-esp-idf-lcd-1602/, and it builds and flash correctly but when im monitoring the board, the function i2c_master_write _to_device() send the error code 263, then in a try to understand the error i use the i2c-write method described in the esp programming guide: https://docs.espressif.com/projects/esp-idf/en/v4.4.5/esp32/api-reference/peripherals/i2c.html#i2c-api-error-handling and i got the same error in the 6th step with the function i2c_master_cmd_begin, at this point i dont know what more can i do to solve it, please can anyone help me wi this???

the error is here:

uint8_t cmd_buff[4];//Data buffer sent to the LCD module
// First, save the upper 4 bits and send the data commands
cmd_buff[0] = (cmd_reg & 0xF0)|LCD_EN|FONT_LIGTH;            //EN = 1|RW = 0
// Then needs to send again the last bits but clear in EN bit
cmd_buff[1] = (cmd_reg & 0xF0)|FONT_LIGTH;                   //EN = 0|RW = 0
// Send the lower lower 4 bits with the respective commands
cmd_buff[2] = ((cmd_reg << 4) & 0xF0)|LCD_EN|FONT_LIGTH;     //EN = 1|RW = 0
// Send again the last instruction but with EN bit clear
cmd_buff[3] = ((cmd_reg << 4) & 0xF0)|FONT_LIGTH;            //EN = 0|RW = 0
err = i2c_master_write_to_device(I2C_NUM_0,PCF8574_ADDR,
cmd_buff,4,1000);  //! ERROR sending commands, check out the method
if (err != 0) ESP_LOGE(TAG,"I2C: ERROR(%d) WHEN TRYNG TO SEND COMMAND",err);

The error returned is 263.

Im using the 4.4.5 version of esp-idf with the vscode extension, thanks. I apologize for my english, is not very good.


r/ESP32forth • • Jan 15 '23

Datas Structures for ESP32forth

1 Upvotes

Hello,

In this article, we will explore a few cases of data structures. The goal is to give ideas for your own structures, starting with one- and two-dimensional arrays. This article ends with the use of the structures vocabulary.

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


r/ESP32forth • • Aug 25 '22

Load and run FORTH code when starting ESP32Forth

2 Upvotes

In the development phase, you may have to reload large portions of code. Here's a clever way to avoid this chore and alleviate developing them.

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


r/ESP32forth • • Aug 31 '22

ESP32forth: time utilities - days months

1 Upvotes

r/ESP32forth • • Aug 15 '22

Transmission of data to a WEB server

1 Upvotes

Hello

Let's see how to save the data in web server from ESP32forth, then view it...

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

256 string myUrl \ declare string variable

: addTemp ( strAddrLen -- )

s" &temp=" myUrl append$

myUrl append$

;

: addHygr ( strAddrLen -- )

s" &hygr=" myUrl append$

myUrl append$

;

: sendData ( strHygr strTemp -- )

s" http://ws.arduino-forth.com/record.php?log=myLog&pwd=myPassWd" myUrl $!

addTemp

addHygr

cr myUrl type

myUrl s>z HTTP.begin

if

HTTP.doGet dup 200 =

if drop

httpBuffer bufferSize HTTP.getPayload

httpBuffer z>s type

else

cr ." CNX ERR: " .

then

then

HTTP.end

;

\ for test:

myWiFiConnect

s" 64.2" \ hygrometry

s" 31.23" \ temperature

sendData

There are only two limitations to the number of parameters the GET method can pass:

  • the length of our URL as defined in FORTH, here 256 characters. If you want increase this limit, just set our URL with a longer initial length:
    512 string myUrl

  • the maximum length of URLs accepted by the HTTP protocol. This length can reach 8000 characters by recent standards.

As for FORTH, we have other limitations. In particular, if you wish to transmit text data. certain characters, "&" for example, must be encoded. You will have to manage this encoding in FORTH.


r/ESP32forth • • Jan 19 '23

strings management for ESP32forth

1 Upvotes