Same Arduino esp32 code doesn't work with ESP-IDF #11043
Closed
jozefcipa
started this conversation in
Question - Community Help
Replies: 1 comment
-
Solution: I found out that since I don't use the official ESP32, the pin numbers are different (!), so I use this config
I checked the XIAO_ESP32C3 variant file and I found out this
So in my ESP-IDF code I'm now using
and it works 🎉 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
TLDR: What does
arduino-esp32
automatically configure that ESP-IDF doesn't?I have a VFD display and I'm trying to control it via an XIAO_ESP32C3. 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
anddelayMicroseconds
functions to IDF based on thearduino-esp32
repository's code).Here's the original code.
As you can see, it doesn't use the SPI library but handles the communication manually. I tried to mimic the same behavior with ESP-IDF but without luck.
I'm quite lost to be honest and I would like to have this working in IDF if possible, but not really sure what to check anymore. Seems to me that Arduino might be doing some extra steps and configuration behind the scenes that I'm not aware of. I tried to check out the code in the repo but couldn't find anything.
Any suggestions or tips are welcome.
PS: If this is not the right place for this question, I'll remove it.
Beta Was this translation helpful? Give feedback.
All reactions