Czy wolisz polską wersję strony elektroda?
Nie, dziękuję Przekieruj mnie tam#define BUTTON_DOWN (1)
#define BUTTON_UP (2)
#define BUTTON_HELD (3)NIXIE_123 wrote:Nothing is highlighted anymore and everything works as expected.
khoam wrote:.IDE can affect the operation of the code in ESP
khoam wrote:.But in which version of the callback function?
conf.clk_flags = 0;khoam wrote:directly manipulate GPIO W1TS registers once GPIO W1TC8923e5bb6 .
And it works! I have no panic. I've made myself 4 "map" arrays in RAM and in the interrupt just writes values from them to w1ts
I removed the set_catode() function entirely
It normally connects to the wifi even at 35µs. There is only one side effect
Solution as above without wifi:
-everything works I have no comments
Solution as above with wifi:
-no adc works when code from wifi starts. Clock works normally just doesn't dim (well, because there is no adc)
So I paste in the code the diagnostics(last line):.Code: C / C++Log in, to see the code
And the processor has a panic exactly when the last line is called. I remove it it works without a working adc
![]()
Initialisation of adc:.Code: C / C++Log in, to see the code
https://www.esp32.com/viewtopic.php?t=9972
Solution:
you need to disable wifi by.Code: C / C++Log in, to see the code
Only RMT(led_strip) does not work, not sure why
Oh, it's working now. Apparently it was still trying to connect in the background and delayed calling esp_wifi_stop()
TL;DR: 35 μs timer ISRs run ~5 µs each (“fast enough if kept in IRAM” [Elektroda, khoam, post #19547733]) and an ADC2-Wi-Fi clash causes 100 % failure when both are active [Espressif Docs]. "Keep ISRs tiny" [Elektroda, khoam, post #19448979]
Why it matters: These micro-timing rules decide whether your ESP32 reboots or streams data reliably.
• Minimum reliable esp_timer period: 50 µs (Espressif v4.2 docs) • esp_timer task priority: 22 (ESP_TASK_PRIO_MAX-3) [Elektroda, khoam, post #19448979] • Default ISR stack: 1 536 bytes (CONFIG_FREERTOS_ISR_STACKSIZE) [Elektroda, khoam, post #19547733] • ADC2 is unavailable while Wi-Fi is on; ADC1 always works (Technical Reference v4.3) • System tick default: 1 ms; can be raised to 1 kHz by setting CONFIG_FREERTOS_HZ=1000 [Elektroda, khoam, post #19546466]