Search found 3 matches

by jozefcipa
Thu Mar 06, 2025 9:51 am
Forum: ESP32 Arduino
Topic: Same Arduino esp32 code doesn't work with ESP-IDF
Replies: 3
Views: 1122

Re: Same Arduino esp32 code doesn't work with ESP-IDF

Solution : I found out that since I don't use the official ESP32, the pin numbers are different (!), so I use this config


uint8_t din = D10;
uint8_t clk = D8;
uint8_t cs = D1;
uint8_t Reset = D0;


I checked the XIAO_ESP32C3 variant file ( https://github.com/espressif/arduino-esp32/blob/master ...
by jozefcipa
Thu Mar 06, 2025 8:00 am
Forum: ESP32 Arduino
Topic: Same Arduino esp32 code doesn't work with ESP-IDF
Replies: 3
Views: 1122

Re: Same Arduino esp32 code doesn't work with ESP-IDF

yeah, sorry, my bad. Here are the functions. Unfortunately, I don't have an oscilloscope or a logic analyzer.
In the worst case I'll have to go with the Arduino version, but I'd really prefer the IDF.



#define NOP() asm volatile("nop")

void digitalWrite(uint8_t pin, uint8_t val) {
gpio_set ...
by jozefcipa
Wed Mar 05, 2025 11:15 pm
Forum: ESP32 Arduino
Topic: Same Arduino esp32 code doesn't work with ESP-IDF
Replies: 3
Views: 1122

Same Arduino esp32 code doesn't work with ESP-IDF

I have a VFD display and I'm trying to control it via an esp32. The display manufacturer provided an official Arduino code that works well, but when I try to port this code to ESP-IDF I cannot make it work. (I even ported the pinMode, digitalWrite and delayMicroseconds functions to IDF based on the ...

Go to advanced search