mirror of
https://github.com/meshcore-dev/MeshCore.git
synced 2026-07-10 10:51:42 +00:00
24 lines
538 B
C++
24 lines
538 B
C++
#pragma once
|
|
|
|
#include <Arduino.h>
|
|
#include <helpers/RefCountedDigitalPin.h>
|
|
#include <helpers/ESP32Board.h>
|
|
#include <PCA9557.h>
|
|
|
|
extern PCA9557 expander;
|
|
|
|
class ThinknodeM5Board : public ESP32Board {
|
|
|
|
public:
|
|
|
|
void begin();
|
|
uint16_t getBattMilliVolts() override;
|
|
const char* getManufacturerName() const override ;
|
|
|
|
void onBeforeTransmit() override {
|
|
expander.digitalWrite(EXP_PIN_LED, HIGH); // turn TX LED on
|
|
}
|
|
void onAfterTransmit() override {
|
|
expander.digitalWrite(EXP_PIN_LED, LOW); // turn TX LED off
|
|
}
|
|
}; |