1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-02 10:02:23 +01:00

Fix SN74HC595 doesn't use ESPHome HAL and add lint checks for it (#1188)

This commit is contained in:
Otto Winter
2020-07-25 14:22:56 +02:00
committed by GitHub
parent 55388724af
commit 0fc8e8d483
7 changed files with 105 additions and 37 deletions

View File

@@ -19,11 +19,11 @@ void MCP3008::dump_config() {
}
float MCP3008::read_data_(uint8_t pin) {
byte data_msb = 0;
byte data_lsb = 0;
uint8_t data_msb = 0;
uint8_t data_lsb = 0;
byte command = ((0x01 << 7) | // start bit
((pin & 0x07) << 4)); // channel number
uint8_t command = ((0x01 << 7) | // start bit
((pin & 0x07) << 4)); // channel number
this->enable();