summaryrefslogtreecommitdiffstats
path: root/_site/log
diff options
context:
space:
mode:
Diffstat (limited to '_site/log')
-rw-r--r--_site/log/etlas/index.html30
1 files changed, 13 insertions, 17 deletions
diff --git a/_site/log/etlas/index.html b/_site/log/etlas/index.html
index 9362917..f618503 100644
--- a/_site/log/etlas/index.html
+++ b/_site/log/etlas/index.html
@@ -54,20 +54,18 @@ DHT22 sensor.</p>
</tr>
</table>
-<p>Stocks: Two weeks EOD prices from Polygon.io (max SRAM holds). Flask app on VPS
-relays feed, lets me swap symbols via config. FastCGI + httpd + htpasswd.</p>
+<p>Stocks: Two weeks EOD prices from Polygon.io (max possible). Flask app on VPS
+relays feed; manages watchlist. Backend: httpd + htpasswd + FastCGI + Flask.</p>
-<p>gui_plot_stocks() triggers WDT. vTaskDelay() prevents that. Stepped graph was
-easier to code for the bit-packed framebuffer (not enough memory for much
-else), but it’s messy–too messy.</p>
-
-<p>Note to self: Refactor gui_plot_stocks(). Bresenham’s line algorithm perhaps?</p>
+<p>gui_plot_stocks() triggers watchdog; vTaskDelay() required. Stepped graph was
+easier to implement (under memory constraints), but the logic is hideous. Note
+to self: Refactor with Bresenham’s?</p>
<p>News: Channel NewsAsia RSS. MCU parses XML directly. Character glyphs stored as
-bitmaps in sprites directory.</p>
+bitmaps in header files.</p>
-<p>Weather: DHT22 via PWM. 26µs/50µs/70µs pulses too fast for standard ESP32 APIs.
-Compare relative pulse widths:</p>
+<p>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 <a href="https://github.com/Fonger/ESP8266-RTOS-DHT" class="external" target="_blank" rel="noopener noreferrer">ESP8266</a>):</p>
<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>static inline int dht_await_pin_state(int state, int timeout)
{
@@ -124,14 +122,12 @@ static inline int dht_get_raw_data(unsigned char buf[BUFLEN])
}
</code></pre></div></div>
-<p>Ported from <a href="https://github.com/Fonger/ESP8266-RTOS-DHT" class="external" target="_blank" rel="noopener noreferrer">ESP8266</a>.</p>
-
-<p>After flashing new versions, display would stop responding. Didn’t observe this
-with e-reader. Issue occurs spontaneously. Couldn’t find root cause. Making a
-change like adding a comment or tweaking delay in refresh() (then changing
-back) fixed it. Noisy electrical connections?</p>
+<p>Ghost in the machine: epd_init() stalls intermittently on first refresh() after
+flash. Toggling delay values in refresh() resolves it. If first refresh
+succeeds, it remains stable. Root cause unknown–suspected power supply issues
+from powering display via MCU.</p>
-<p>Once running, it runs: August 2024 - December 2025.</p>
+<p>Uptime: August 2024 - January 2026</p>
<p>Commit:
<a href="https://git.asciimx.com/etlas/commit/?id=a92c86ac1592c2137d3d1fec1668eacc2d0ca581">a92c86a</a></p>