#pragma once #include #include #include #include extern PCA9557 expander; class ThinknodeM5Board : public ESP32Board { public: void begin(); bool supportsBatteryCalibration() const override { return true; } uint16_t getBattMilliVolts() override; const char* getManufacturerName() const override ; void applyLedPolicy() override { if (!mesh::leds::enabled()) expander.digitalWrite(EXP_PIN_LED, LOW); } void onBeforeTransmit() override { if (mesh::leds::enabled()) expander.digitalWrite(EXP_PIN_LED, HIGH); // turn TX LED on } void onAfterTransmit() override { expander.digitalWrite(EXP_PIN_LED, LOW); // turn TX LED off } };