36 void setup()
override;
Copy of GPIOPin that is safe to use from ISRs (with no virtual functions)
Base-class for all sensors.
This class implements support for the Tx20 Wind sensor.
sensor::Sensor * wind_direction_degrees_sensor_
std::string get_wind_cardinal_direction() const
Get the textual representation of the wind direction ('N', 'SSE', ..).
void set_wind_speed_sensor(sensor::Sensor *wind_speed_sensor)
std::string wind_cardinal_direction_
void decode_and_publish_()
Tx20ComponentStore store_
sensor::Sensor * wind_speed_sensor_
void set_wind_direction_degrees_sensor(sensor::Sensor *wind_direction_degrees_sensor)
void set_pin(InternalGPIOPin *pin)
void dump_config() override
float get_setup_priority() const override
Providing packet encoding functions for exchanging data with a remote host.
Store data in a class that doesn't use multiple-inheritance (vtables in flash)
volatile uint32_t start_time
volatile uint32_t spent_time
static void gpio_intr(Tx20ComponentStore *arg)
volatile uint16_t * buffer
volatile uint8_t buffer_index
volatile bool tx20_available