mirror of
https://github.com/meshcore-dev/MeshCore.git
synced 2026-04-20 22:13:47 +00:00
thinknode_m5: tx_led
This commit is contained in:
parent
24edd3cf20
commit
dfec6d3483
6 changed files with 25 additions and 17 deletions
|
|
@ -4,6 +4,9 @@
|
|||
#include <helpers/RefCountedDigitalPin.h>
|
||||
#include <helpers/ESP32Board.h>
|
||||
#include <driver/rtc_io.h>
|
||||
#include <PCA9557.h>
|
||||
|
||||
extern PCA9557 expander;
|
||||
|
||||
class ThinknodeM5Board : public ESP32Board {
|
||||
|
||||
|
|
@ -15,4 +18,10 @@ public:
|
|||
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
|
||||
}
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue