mirror of
https://github.com/esphome/esphome.git
synced 2024-12-29 00:41:44 +01:00
updates
This commit is contained in:
parent
63246ee815
commit
d621b6c44f
2 changed files with 5 additions and 2 deletions
|
@ -5,6 +5,9 @@ namespace esphome {
|
|||
namespace ebyte_lora_e220 {
|
||||
|
||||
void EbyteLoraE220::setup() {
|
||||
this->pin_aux->setup();
|
||||
this->pin_m0->setup();
|
||||
this->pin_m1->setup();
|
||||
if (this->pin_aux != nullptr) {
|
||||
this->pin_aux->pin_mode(gpio::FLAG_INPUT);
|
||||
ESP_LOGD(TAG, "Init AUX pin!");
|
||||
|
@ -113,7 +116,7 @@ void EbyteLoraE220::dump_config() {
|
|||
LOG_PIN(" M0 Pin: ", this->pin_m0);
|
||||
LOG_PIN(" M1 Pin: ", this->pin_m1);
|
||||
};
|
||||
void EbyteLoraE220::update() {
|
||||
void EbyteLoraE220::loop() {
|
||||
// This will be called by App.loop()
|
||||
|
||||
if (this->available() > 1) {
|
||||
|
|
|
@ -36,7 +36,7 @@ class EbyteLoraE220 : public PollingComponent, public uart::UARTDevice {
|
|||
void set_pin_m1(GPIOPin *s) { pin_m1 = s; }
|
||||
void setup() override;
|
||||
void dump_config() override;
|
||||
void update() override;
|
||||
void loop() override;
|
||||
|
||||
private:
|
||||
MODE_TYPE mode = MODE_0_NORMAL;
|
||||
|
|
Loading…
Reference in a new issue