C-ITS Sniffer v2: ST7735-Display, SPI2-Fix, Single-Core-Fix, 5-min-Zähler

- ST7735 SPI-Treiber (80x160, 5x7-Font) mit Debug-Panel (5MIN/FRM/DROP/SRC/FREE/CH)
- SPI2_HOST statt SPI1_HOST (SPI1 = Flash-reserviert auf ESP32-C5)
- xTaskCreate statt xTaskCreatePinnedToCore (C5 ist Single-Core)
- SD-Karte (SPI 1-bit, 32 GB, FAT32) + Flash-storage-Fallback
- Serial-REPL: stats, seron, seroff, reboot
- APA102 RGB-Status-LED (blau=boot, gruen=armed, rot=fehler)
- Build: ESP-IDF v6.1-dev, RISC-V, ~920 KB

Replaced old block1-4 prototype with full modular firmware.
This commit is contained in:
clawdia committed 2026-11-10 10:21:23 +01:00
1 parent b852826f5c
commit d1b3d1bae6
24 files changed
+1552 -698

No files matched your search

+18
View File
@@ -0,0 +1,18 @@
#pragma once
#include <stdbool.h>
#include <stdint.h>
#include "esp_err.h"
/* ST7735 0.96" 80x160 SPI display (T-Dongle C5).
* Shares the SPI2_HOST bus with the microSD card (different CS).
* Manual RS (D/C) pin; SPI-managed CS. */
esp_err_t st7735_init(void);
bool st7735_ready(void);
void st7735_clear(uint16_t color);
void st7735_fill_rect(int x, int y, int w, int h, uint16_t color);
void st7735_set_fg(uint16_t color);
void st7735_set_bg(uint16_t color);
/* Render a C string at (x, y) using a 5x7 font (1x scale, 6px advance). */
void st7735_text(int x, int y, const char *s);
/* RGB565 helpers */
uint16_t st7735_rgb565(int r, int g, int b);