Forth like language for the ESP8266

Donnerstag, 10. Dezember 2015 @ 01:17 CET

Beitrag von: mk

Craig Lindley hat eine an Forth angelehnte Programmiersprache geschaffen um den ESP8266 für seine Zwecke zu nutzen. Und stellt diese nun zur Verfügung. Der Chip ist interessant für Funkanwendungen weil keine externen Komponenten mehr benötigt werden - ( complete and self-contained Wi-Fi networking solution). Für seine Entwicklung hat er die Arduino IDE Version 1.6.5 und die 2.0 Version des Arduino-esp8266 codes benutzt. Craig ist ein passionierter "maker" - seine website ist ein Fundgrube.

http://craigandheather.net/
http://craigandheather.net/misc/ESP8266Forth.zip
http://espressif.com/en/products/esp8266/

(For more click on link below.)

Hi Michael. Greetings from the US.

I've been writing a Forth like language for the ESP8266 and I wanted to share what I have done. I call it Forth like because I didn't really follow any standards but coded up the words I thought would be useful. The code is far from complete or robust but I thought other Forth addicts out there might enjoy playing with it and extending it for real world applications. I'm not that good of a C++ programmer so please be gentle with your criticism of my coding style. The Arduino code is available at:

http://craigandheather.net/misc/ESP8266Forth.zip

For development I used Arduino IDE version 1.6.5 and the 2.0 version of the Arduino-esp8266 code.

There is no documentation but that may change as time goes on. Currently you interact with the code via the Serial interface and you can load Forth code from named files stored on an attached SD memory card. The word "cold" pulls the reset line of the ESP8266 and allows for a complete system reset.

With this version of the code there is still about 75% of the flash free and about 50% of the RAM free so in theory you could write rather long programs. And what may not be obvious to non Forth programmers is that all the development tools are already in place so for the most part you develop new code on the ESP8266 itself.

Anyway I thought you and/or your readers might enjoy this. Let me know what you think.

--
Craig Lindley

New Recordings: craigandheather.net/cnmpage.html
Latest rock CD: craigandheather.net/hellinahandbasket.html
Latest non-rock CD: craigandheather.net/craigdoesfingerstyle.html

Personal Website: craigandheather.net

Phone: (719) 495-1873
Cell: (719) 502-7925

If you’re one in a million, there are now seven thousand people exactly like you.

Kommentare (1)


Forth-Gesellschaft e.V.
/article.php/20151210011706511