mirror of
https://github.com/meshcore-dev/MeshCore.git
synced 2026-04-20 22:13:47 +00:00
Move variant specific code
This commit is contained in:
parent
ce4e559c01
commit
6902dd81fa
4 changed files with 4 additions and 1 deletions
|
|
@ -1,28 +0,0 @@
|
|||
#pragma once
|
||||
|
||||
#include <Arduino.h>
|
||||
#include <helpers/ESP32Board.h>
|
||||
|
||||
class XiaoC6Board : public ESP32Board {
|
||||
public:
|
||||
void begin() {
|
||||
ESP32Board::begin();
|
||||
|
||||
#ifdef USE_XIAO_ESP32C6_EXTERNAL_ANTENNA
|
||||
// Connect an external antenna to your XIAO ESP32C6 otherwise, it may be damaged!
|
||||
pinMode(3, OUTPUT);
|
||||
digitalWrite(3, LOW); // Activate RF switch control
|
||||
|
||||
delay(100);
|
||||
|
||||
pinMode(14, OUTPUT);
|
||||
digitalWrite(14, HIGH); // Use external antenna
|
||||
#endif
|
||||
}
|
||||
|
||||
const char* getManufacturerName() const override {
|
||||
return "Xiao C6";
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue