-
Notifications
You must be signed in to change notification settings - Fork 44
feat(targets): Add DOIT ESP32 DevKit V1 to Compatibility Table #162
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: Main-Trunk
Are you sure you want to change the base?
Conversation
… configuration file
…DOIT DevKit V1 Once this development board's compatibility has been finalised, this will be reverted back to Adafruit Metro M4.
|
Right-oh @DurvalMenezes, you're up. =^/.^= You can check-out the topic branch either by downloading-and-extracting the zip to where you have CFA currently installed relative to your IDE, or do a Then in Then flash your choice of examples to your development board. If you're getting grief on the default port, try the ESP32-specific constructor Example: #include "CRSFforArduino.h"
/* Define your custom UART pinouts here. */
#define MY_UART_RX_PIN 2
#define MY_UART_TX_PIN 3
/* Declare a null pointer to CRSF for Arduino. */
CRSFforArduino *crsf = nullptr;
void setup()
{
/* Instantiate CRSF for Arduino with your custom pins. */
crsf = new CRSFforArduino(&Serial1, MY_UART_RX_PIN, MY_UART_TX_PIN);
}
void loop()
{
/* Your main code here... */
}In this case, you may also need to point CRSF for Arduino supports custom baud rates as well. Although it defaults to 416,666 if you do not specify a baud rate when |
|
Also fuck my dyslexia. =</.>= |
Seriously, thanks for the detailed instructions. Followed them to the letter and here's what trying to compile Looks like a couple of |
He who has never inverted two words in entirely arbitrary names may cast the first nasty comment... :-) |
Ah. From what I can see, the ESP32 board support package isn't providing pin definitions for its default Usually when the pins aren't declared in CFA's constructor, CFA will favour default UART pins for compatible hardware and that means using the definitions provided by the Upon further inspection (in the Arduino Espressif32 board support package), there is no I can do a workaround for this that will automatically point |
The ESP32 board support package does not provide generic `PIN_SERIAL1_RX` and `PIN_SERIAL1_TX` defines. So, these have been added to the Compatibility Table's header for ESP32 targets. This changes the default UART pins for ESP32 targets to where they should be, instead of using potentially non-existent pins 0 and 1. Refer to your development board's documentation for its default UART pinouts.
Right-oh. Been a hot minute since I last made any Pull Requests for new targets.
As per #159, this adds support for the DOIT ESP32 DevKit V1.
I have been made aware that there may also be a conflict between CFA and how this target handles UART, as it uses The Old Skool Method™️ of sharing the default UART with an external Serial-to-USB converter chip.
So I have marked this Pull Request as a draft until this gets sorted.