Make code work with ESP32 boards as well #11

Open
W1CDN wants to merge 1 commits from esp32-devkit-doit into main
Owner
Resources: - https://community.platformio.org/t/how-to-use-multiple-target-boards-with-same-project/16041/3 - https://docs.platformio.org/en/latest/projectconf/sections/env/options/build/build_flags.html
W1CDN added 1 commit 2024-02-24 22:54:41 -06:00
Author
Owner

Current status is that I can make the code compile for either board. There are some parts that rely on Arduino architecture, so I can't use those directly for ESP32.

I am avoiding these parts during compile (for now), but once I wire up the board to test, I can see what doesn't work and try to fix. It may be code around the encoder function and pin change interrupts: https://thewanderingengineer.com/2014/08/11/arduino-pin-change-interrupts/

There was also a referenced encoder library that doesn't seem like it was used?

I'm also assuming the default I2C pins from here: https://deepbluembedded.com/esp32-i2c-tutorial-change-pins-i2c-scanner-arduino/
SCL GPIO22
SDA GPIO21

Current status is that I can make the code compile for either board. There are some parts that rely on Arduino architecture, so I can't use those directly for ESP32. I am avoiding these parts during compile (for now), but once I wire up the board to test, I can see what doesn't work and try to fix. It may be code around the encoder function and pin change interrupts: https://thewanderingengineer.com/2014/08/11/arduino-pin-change-interrupts/ There was also a referenced encoder library that doesn't seem like it was used? I'm also assuming the default I2C pins from here: https://deepbluembedded.com/esp32-i2c-tutorial-change-pins-i2c-scanner-arduino/ SCL GPIO22 SDA GPIO21
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin esp32-devkit-doit:esp32-devkit-doit
git checkout esp32-devkit-doit
Sign in to join this conversation.
No description provided.