From 67765788c180305da1d89ad0088fa9583bf038fd Mon Sep 17 00:00:00 2001
From: Brad Nelson
Date: Sat, 18 Dec 2021 00:53:10 -0800
Subject: [PATCH] Improve website and compat.
---
ueforth/esp32/bindings.fs | 2 +
ueforth/esp32/template.ino | 8 +-
ueforth/site/ESP32forth.html | 225 +++++++++++++++++++---
ueforth/site/static/eforth.css | 18 +-
ueforth/site/static/esp-cam-back.jpg | Bin 0 -> 53058 bytes
ueforth/site/static/esp-cam-front.jpg | Bin 0 -> 59552 bytes
ueforth/site/static/esp-cam-wiring.jpg | Bin 0 -> 143675 bytes
ueforth/site/static/esp32-c3-mini-1.jpg | Bin 0 -> 61233 bytes
ueforth/site/static/esp32-c3-wroom-02.jpg | Bin 0 -> 64789 bytes
ueforth/site/static/esp32-mini-1.jpg | Bin 0 -> 70427 bytes
ueforth/site/static/esp32-s2-wroom.jpg | Bin 0 -> 79329 bytes
ueforth/site/static/esp32-s2-wrover.jpg | Bin 0 -> 83173 bytes
ueforth/site/static/esp32-wroom.jpg | Bin 0 -> 74645 bytes
ueforth/site/static/serial_bridge.jpg | Bin 0 -> 81938 bytes
14 files changed, 226 insertions(+), 27 deletions(-)
create mode 100644 ueforth/site/static/esp-cam-back.jpg
create mode 100644 ueforth/site/static/esp-cam-front.jpg
create mode 100644 ueforth/site/static/esp-cam-wiring.jpg
create mode 100644 ueforth/site/static/esp32-c3-mini-1.jpg
create mode 100644 ueforth/site/static/esp32-c3-wroom-02.jpg
create mode 100644 ueforth/site/static/esp32-mini-1.jpg
create mode 100644 ueforth/site/static/esp32-s2-wroom.jpg
create mode 100644 ueforth/site/static/esp32-s2-wrover.jpg
create mode 100644 ueforth/site/static/esp32-wroom.jpg
create mode 100644 ueforth/site/static/serial_bridge.jpg
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:
+
+ - For ESP32 -
https://dl.espressif.com/dl/package_esp32_index.json
+ - For ESP32-S2 or ESP32-C3 -
https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_dev_index.json
+
+
+ | BOARD |
+ ESP32 Version |
+ Tools 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
+
+ |
+
+
+