thinknode_m5: tx_led
This commit is contained in:
@@ -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
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user