ESPHomeMarlin2/marlin2.h

27 lines
756 B
C
Raw Normal View History

2024-12-27 10:47:42 +00:00
#pragma once
#include "esphome/core/component.h"
#include "esphome/components/sensor/sensor.h"
#include "esphome/components/uart/uart.h"
namespace esphome {
namespace serial {
class Marlin2 : public Component, public uart::UARTDevice {
public:
2024-12-27 11:02:11 +00:00
// float get_setup_priority() const override { return setup_priority::DATA; }
2024-12-27 10:47:42 +00:00
void loop() override;
2024-12-27 11:02:11 +00:00
// void dump_config() override;
2024-12-27 10:47:42 +00:00
2024-12-27 11:02:11 +00:00
// void add_sensor(int index, sensor::Sensor *sens) {
// this->sensors_.push_back(std::make_pair(index, sens));
// }
2024-12-27 10:47:42 +00:00
2024-12-27 11:02:11 +00:00
// protected:
// void parse_values_();
// std::vector<uint8_t> rx_message_;
// std::vector<std::pair<int, sensor::Sensor *>> sensors_;
2024-12-27 10:47:42 +00:00
};
} // namespace serial
} // namespace esphome