diff --git a/ueforth/esp32/bindings.fs b/ueforth/esp32/bindings.fs index 5796e38..804ca29 100644 --- a/ueforth/esp32/bindings.fs +++ b/ueforth/esp32/bindings.fs @@ -151,6 +151,7 @@ ESP_INTR_FLAG_DEFAULT gpio_install_isr_service drop forth definitions +DEFINED? rmt_set_clk_div [IF] vocabulary rmt rmt definitions transfer{ rmt_set_clk_div rmt_get_clk_div rmt_set_rx_idle_thresh rmt_get_rx_idle_thresh @@ -168,6 +169,7 @@ transfer{ rmt_translator_set_context rmt_translator_get_context rmt_write_sample }transfer forth definitions +[THEN] vocabulary rtos rtos definitions transfer{ diff --git a/ueforth/esp32/template.ino b/ueforth/esp32/template.ino index fb613a2..404a50f 100644 --- a/ueforth/esp32/template.ino +++ b/ueforth/esp32/template.ino @@ -32,7 +32,6 @@ #define ENABLE_SOCKETS_SUPPORT #define ENABLE_FREERTOS_SUPPORT #define ENABLE_INTERRUPTS_SUPPORT -#define ENABLE_RMT_SUPPORT // SD_MMC does not work on ESP32-S2 / ESP32-C3 #if !defined(CONFIG_IDF_TARGET_ESP32S2) && !defined(CONFIG_IDF_TARGET_ESP32C3) @@ -44,6 +43,13 @@ # define ENABLE_DAC_SUPPORT #endif +// RMT support designed around v2.0.1 toolchain. +// While ESP32 also has RMT, for now only include for +// ESP32-S2 and ESP32-C3. +#if defined(CONFIG_IDF_TARGET_ESP32S2) || defined(CONFIG_IDF_TARGET_ESP32C3) +# define ENABLE_RMT_SUPPORT +#endif + // Uncomment this #define for OLED Support. // You will need to install these libraries from the Library Manager: // Adafruit SSD1306 diff --git a/ueforth/site/ESP32forth.html b/ueforth/site/ESP32forth.html index b795cf7..503f333 100644 --- a/ueforth/site/ESP32forth.html +++ b/ueforth/site/ESP32forth.html @@ -95,36 +95,211 @@ Download the Arduino IDE for yo

Go to File > Preferences.
-Under Additional Board Manager URLs enter: https://dl.espressif.com/dl/package_esp32_index.json +Under Additional Board Manager URLs add: +

-Choose these options under Tools. - -

+Select your serial port under Tools > Port.

+

+Under Tools choose board and settings as below under Tools. +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
BOARDESP32 VersionTools Settings
+ OTHER ESP32-XXX BOARDS
+ Use a more exact board selection or consult documentation to choose equivalent Dev Module settings. + Your mileage may vary. +
+ NOTE: Not all ESP-32 boards are compatible with Arduino. +
2.0.1 + + Board: Your board type OR closest Dev Module
+ Partition Scheme: Favor more App storage if option available
+
+
+ ESP32-WROOM
+ +
1.0.6 + + Board: ESP32 Dev Module
+ Partition Scheme: No OTA (2M APP, 2M SPIFFS) ← Non-default
+ Upload Speed: 921600
+ CPU Frequency: 240MHz
+ Flash Frequency: 80MHz
+ Flash Mode: QIO
+ Flash Size: 4MB (32Mb)
+ Core Debug Level: None
+ PSRAM: Disable
+
+ + Arduino Runs On: Core 1
+ Events Run On: Core 1
+
+
+
+ ESP32-WROVER
+
1.0.6 + + Board: ESP32 Dev Module
+ Partition Scheme: No OTA (2M APP, 2M SPIFFS) ← Non-default
+ Upload Speed: 921600
+ CPU Frequency: 240MHz
+ Flash Frequency: 80MHz
+ Flash Mode: QIO
+ Flash Size: 4MB (32Mb)
+ Core Debug Level: None
+ PSRAM: Enabled
+
+ + Arduino Runs On: Core 1
+ Events Run On: Core 1
+
+
+
+ ESP32-CAM
+ + + +
1.0.6 + + Board: AI Thinker ESP32-CAM
+
+
+ ESP32-MINI-1
+ ESP32-SOLO-1
+ + NOT CURRENTLY SUPPORTED +
N/A + NOT CURRENTLY SUPPORTED
+ Arduino builds ESP32 assuming dual core, but the SOLO and MINI have only one core. +
+ ESP32-S2-WROOM
+ +
2.0.1 + + Board: ESP32S2 Dev Module
+ Partition Scheme: No OTA (2M APP, 2M SPIFFS) ← Non-default
+ Upload Speed: 921600
+ USB CDC On Boot: Disabled
+ USB Firmware MSC On Boot: Disabled
+ USB DFU On Boot: Disabled
+ Upload Mode: UART0
+ CPU Frequency: 240MHz
+ Flash Frequency: 80MHz
+ Flash Mode: QIO
+ Flash Size: 4MB (32Mb)
+ Core Debug Level: None
+ PSRAM: Disabled
+
+
+ ESP32-S2-WROVER
+ +
2.0.1 + + Board: ESP32S2 Dev Module
+ Partition Scheme: No OTA (2M APP, 2M SPIFFS) ← Non-default
+ Upload Speed: 921600
+ USB CDC On Boot: Disabled
+ USB Firmware MSC On Boot: Disabled
+ USB DFU On Boot: Disabled
+ Upload Mode: UART0
+ CPU Frequency: 240MHz
+ Flash Frequency: 80MHz
+ Flash Mode: QIO
+ Flash Size: 4MB (32Mb)
+ Core Debug Level: None
+ PSRAM: Enabled
+
+
+ + + + + +
+ ESP32-C3-MINI-1
+ (ESP32-C3-DevKitM-1)
+ +
+ ESP32-C3-WROOM-02
+ (ESP32-C3-DevKitC-02)
+ +
+
2.0.1 + + Board: ESP32C3 Dev Module
+ Partition Scheme: No OTA (2M APP, 2M SPIFFS) ← Non-default
+ Upload Speed: 921600
+ USB CDC On Boot: Disabled
+ CPU Frequency: 160MHz
+ Flash Frequency: 80MHz
+ Flash Mode: QIO
+ Flash Size: 4MB (32Mb)
+ Core Debug Level: None
+ PSRAM: Disabled
+
+
+

Use

diff --git a/ueforth/site/static/eforth.css b/ueforth/site/static/eforth.css index 8059318..eec116e 100644 --- a/ueforth/site/static/eforth.css +++ b/ueforth/site/static/eforth.css @@ -84,4 +84,20 @@ a:hover { .menu .picked a:hover { color: #fff; } - +table { + border: 1px solid black; + border-collapse: collapse; +} +th { + border: 1px solid black; + padding: 3px; + color: #fff; + background-color: #444; +} +td { + border: 1px solid black; + padding: 5px; +} +.hilit { + background-color: yellow; +} diff --git a/ueforth/site/static/esp-cam-back.jpg b/ueforth/site/static/esp-cam-back.jpg new file mode 100644 index 0000000..c08c879 Binary files /dev/null and b/ueforth/site/static/esp-cam-back.jpg differ diff --git a/ueforth/site/static/esp-cam-front.jpg b/ueforth/site/static/esp-cam-front.jpg new file mode 100644 index 0000000..f1df33c Binary files /dev/null and b/ueforth/site/static/esp-cam-front.jpg differ diff --git a/ueforth/site/static/esp-cam-wiring.jpg b/ueforth/site/static/esp-cam-wiring.jpg new file mode 100644 index 0000000..51971c5 Binary files /dev/null and b/ueforth/site/static/esp-cam-wiring.jpg differ diff --git a/ueforth/site/static/esp32-c3-mini-1.jpg b/ueforth/site/static/esp32-c3-mini-1.jpg new file mode 100644 index 0000000..058d0fe Binary files /dev/null and b/ueforth/site/static/esp32-c3-mini-1.jpg differ diff --git a/ueforth/site/static/esp32-c3-wroom-02.jpg b/ueforth/site/static/esp32-c3-wroom-02.jpg new file mode 100644 index 0000000..aab2769 Binary files /dev/null and b/ueforth/site/static/esp32-c3-wroom-02.jpg differ diff --git a/ueforth/site/static/esp32-mini-1.jpg b/ueforth/site/static/esp32-mini-1.jpg new file mode 100644 index 0000000..63b7e46 Binary files /dev/null and b/ueforth/site/static/esp32-mini-1.jpg differ diff --git a/ueforth/site/static/esp32-s2-wroom.jpg b/ueforth/site/static/esp32-s2-wroom.jpg new file mode 100644 index 0000000..5bf0cbd Binary files /dev/null and b/ueforth/site/static/esp32-s2-wroom.jpg differ diff --git a/ueforth/site/static/esp32-s2-wrover.jpg b/ueforth/site/static/esp32-s2-wrover.jpg new file mode 100644 index 0000000..43cf549 Binary files /dev/null and b/ueforth/site/static/esp32-s2-wrover.jpg differ diff --git a/ueforth/site/static/esp32-wroom.jpg b/ueforth/site/static/esp32-wroom.jpg new file mode 100644 index 0000000..c9bc331 Binary files /dev/null and b/ueforth/site/static/esp32-wroom.jpg differ diff --git a/ueforth/site/static/serial_bridge.jpg b/ueforth/site/static/serial_bridge.jpg new file mode 100644 index 0000000..0e176c4 Binary files /dev/null and b/ueforth/site/static/serial_bridge.jpg differ