From a851a2d646f439f7126c232ba1524c55a8990872 Mon Sep 17 00:00:00 2001 From: Sadeep Madurange Date: Fri, 9 Jan 2026 16:45:56 +0800 Subject: Remove _site from git. --- _site/log/etlas/circuit.svg | 105 ---------------------------- _site/log/etlas/dash.jpg | Bin 85874 -> 0 bytes _site/log/etlas/etlas_arch.png | Bin 47732 -> 0 bytes _site/log/etlas/index.html | 153 ----------------------------------------- _site/log/etlas/pcb.jpg | Bin 75769 -> 0 bytes _site/log/etlas/schematic.svg | 4 -- _site/log/etlas/source.tar.gz | Bin 46871 -> 0 bytes _site/log/etlas/thumb_sm.jpg | Bin 55678 -> 0 bytes 8 files changed, 262 deletions(-) delete mode 100644 _site/log/etlas/circuit.svg delete mode 100644 _site/log/etlas/dash.jpg delete mode 100644 _site/log/etlas/etlas_arch.png delete mode 100644 _site/log/etlas/index.html delete mode 100644 _site/log/etlas/pcb.jpg delete mode 100644 _site/log/etlas/schematic.svg delete mode 100644 _site/log/etlas/source.tar.gz delete mode 100644 _site/log/etlas/thumb_sm.jpg (limited to '_site/log/etlas') diff --git a/_site/log/etlas/circuit.svg b/_site/log/etlas/circuit.svg deleted file mode 100644 index 6255045..0000000 --- a/_site/log/etlas/circuit.svg +++ /dev/null @@ -1,105 +0,0 @@ - - - - - - - - - - - - - - - - AM2302 - - - DATA - - GND - - VCC - E-Paper display HAT - - - CS - - DC - - DIN - - CLK - - BUSY - - RST - - PWR - - GND - - VCC - - - - - - - - - - - - - - 1 - 2 - 3 - 4 - - - - - 1 - 2 - 3 - 4 - - ESP32 Mini NodeMCU D1 - - IO19 - - - IO15 - - - GND - - - IO27 - - - IO14 - - - IO13 - - - IO25 - - - IO26 - - - IO16 - - - GND - - - 3V3 - - - \ No newline at end of file diff --git a/_site/log/etlas/dash.jpg b/_site/log/etlas/dash.jpg deleted file mode 100644 index cf4efc6..0000000 Binary files a/_site/log/etlas/dash.jpg and /dev/null differ diff --git a/_site/log/etlas/etlas_arch.png b/_site/log/etlas/etlas_arch.png deleted file mode 100644 index 241e9f1..0000000 Binary files a/_site/log/etlas/etlas_arch.png and /dev/null differ diff --git a/_site/log/etlas/index.html b/_site/log/etlas/index.html deleted file mode 100644 index 68c19ae..0000000 --- a/_site/log/etlas/index.html +++ /dev/null @@ -1,153 +0,0 @@ - - - - - - Etlas: e-paper dashboard - - - - - - - - - - - -
-
-
-

ETLAS: E-PAPER DASHBOARD

-
05 SEPTEMBER 2024
-
-

Repurposed the e-reader into something for regular use. News, -stocks, weather dashboard. ESP32 NodeMCU D1 + 7.5” Waveshare e-paper + DHT22 -sensor.

- - - - - - - - - -
frontback
front
- -

Stocks: Two weeks EOD data from Polygon.io (max possible). Flask app on VPS -manages watchlist, relays the feed. Backend: httpd + htpasswd + slowcgi + -Flask.

- -

gui_plot_stocks() plots a stepped graph; was easier to implement, but the code -is hideous; triggers watchdog. vTaskDelay() prevents that.

- -

NOTE: Refactor. Bresenham’s?

- -

News: Channel NewsAsia RSS. MCU does the parsing. Didn’t plan to have a backend -at the time. Now that I have one for stocks, should relay the feed for -flexibility.

- -

Weather: DHT22 single-wire protocol. 26µs/50µs/70µs pulses are too fast for -standard ESP32 APIs. Bit-banged relative pulse widths (ported from ESP8266):

- -
static inline int dht_await_pin_state(int state, int timeout)
-{
-    int t;
-    static const uint16_t delta = 1;
-
-    for (t = 0; t < timeout; t += delta) {
-        ets_delay_us(delta);
-        if (gpio_get_level(DHT_PIN) == state)
-            return t;
-    }
-    return 0;
-}
-
-static inline int dht_get_raw_data(unsigned char buf[BUFLEN])
-{
-    int rc;
-    unsigned char i, pwl, pwh;
-
-    gpio_set_level(DHT_PIN, 0);
-    ets_delay_us(1100);
-    gpio_set_level(DHT_PIN, 1);
-
-    if (!dht_await_pin_state(0, 40)) {
-        rc = 1;
-        xQueueSend(dht_evt_queue, &rc, (TickType_t) 0);
-        return 0;
-    }
-    if (!dht_await_pin_state(1, 80)) {
-        rc = 2;
-        xQueueSend(dht_evt_queue, &rc, (TickType_t) 0);
-        return 0;
-    }
-    if (!dht_await_pin_state(0, 80)) {
-        rc = 3;
-        xQueueSend(dht_evt_queue, &rc, (TickType_t) 0);
-        return 0;
-    }
-
-    for (i = 0; i < BUFLEN; i++) {
-        if (!(pwl = dht_await_pin_state(1, 50))) {
-            rc = 4;
-            xQueueSend(dht_evt_queue, &rc, (TickType_t) 0);
-            return 0;
-        }
-        if (!(pwh = dht_await_pin_state(0, 70))) {
-            rc = 5;
-            xQueueSend(dht_evt_queue, &rc, (TickType_t) 0);
-            return 0;
-        }
-        buf[i] = pwh > pwl;
-    }
-    return 1;
-}
-
- -

epd_init() stalls intermittently on first refresh() after flash. Toggling delay -values in refresh() resolves it. If the first refresh succeeds, it remains -stable. Root cause unknown–suspect noisy power supply due to powering display -via MCU.

- -

Uptime: August 2024 - January 2026

- -

Commit: -a92c86a

-
- -
-
-
- - - - - - diff --git a/_site/log/etlas/pcb.jpg b/_site/log/etlas/pcb.jpg deleted file mode 100644 index fcb40fa..0000000 Binary files a/_site/log/etlas/pcb.jpg and /dev/null differ diff --git a/_site/log/etlas/schematic.svg b/_site/log/etlas/schematic.svg deleted file mode 100644 index 3070dd1..0000000 --- a/_site/log/etlas/schematic.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - -152726131425193V3GND
ESP32 Mini NodeMCU D1
ESP32 Mini NodeMCU D1
DHT22
DHT22
E-paper HAT
E-paper HAT
3.3V
3.3V
3.3V
3.3V
3.3V
3.3V
CS
CS
DC
DC
RST
RST
CLK
CLK
MOSY
MOSY
BUSY
BUSY
VCC
VCC
GND
GND
VCC
VCC
GND
GND
DATA
DATA
Text is not SVG - cannot display
\ No newline at end of file diff --git a/_site/log/etlas/source.tar.gz b/_site/log/etlas/source.tar.gz deleted file mode 100644 index 8b12cf6..0000000 Binary files a/_site/log/etlas/source.tar.gz and /dev/null differ diff --git a/_site/log/etlas/thumb_sm.jpg b/_site/log/etlas/thumb_sm.jpg deleted file mode 100644 index a374879..0000000 Binary files a/_site/log/etlas/thumb_sm.jpg and /dev/null differ -- cgit v1.2.3