mirror of
https://github.com/esphome/esphome.git
synced 2025-11-13 13:25:50 +00:00
Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
119c3f6f46 | ||
|
|
d2c1c7507c | ||
|
|
efdb3d1f40 | ||
|
|
9dbc32b85f | ||
|
|
66226abb48 | ||
|
|
34bef2f2ca |
@@ -195,11 +195,6 @@ class SPIComponent : public Component {
|
|||||||
|
|
||||||
template<SPIBitOrder BIT_ORDER, SPIClockPolarity CLOCK_POLARITY, SPIClockPhase CLOCK_PHASE, uint32_t DATA_RATE>
|
template<SPIBitOrder BIT_ORDER, SPIClockPolarity CLOCK_POLARITY, SPIClockPhase CLOCK_PHASE, uint32_t DATA_RATE>
|
||||||
void enable(GPIOPin *cs) {
|
void enable(GPIOPin *cs) {
|
||||||
if (cs != nullptr) {
|
|
||||||
this->active_cs_ = cs;
|
|
||||||
this->active_cs_->digital_write(false);
|
|
||||||
}
|
|
||||||
|
|
||||||
#ifdef USE_SPI_ARDUINO_BACKEND
|
#ifdef USE_SPI_ARDUINO_BACKEND
|
||||||
if (this->hw_spi_ != nullptr) {
|
if (this->hw_spi_ != nullptr) {
|
||||||
uint8_t data_mode = SPI_MODE0;
|
uint8_t data_mode = SPI_MODE0;
|
||||||
@@ -220,6 +215,11 @@ class SPIComponent : public Component {
|
|||||||
#ifdef USE_SPI_ARDUINO_BACKEND
|
#ifdef USE_SPI_ARDUINO_BACKEND
|
||||||
}
|
}
|
||||||
#endif // USE_SPI_ARDUINO_BACKEND
|
#endif // USE_SPI_ARDUINO_BACKEND
|
||||||
|
|
||||||
|
if (cs != nullptr) {
|
||||||
|
this->active_cs_ = cs;
|
||||||
|
this->active_cs_->digital_write(false);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void disable();
|
void disable();
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
"""Constants used by esphome."""
|
"""Constants used by esphome."""
|
||||||
|
|
||||||
__version__ = "2022.9.0"
|
__version__ = "2022.9.2"
|
||||||
|
|
||||||
ALLOWED_NAME_CHARS = "abcdefghijklmnopqrstuvwxyz0123456789-_"
|
ALLOWED_NAME_CHARS = "abcdefghijklmnopqrstuvwxyz0123456789-_"
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ pyserial==3.5
|
|||||||
platformio==6.0.2 # When updating platformio, also update Dockerfile
|
platformio==6.0.2 # When updating platformio, also update Dockerfile
|
||||||
esptool==3.3.1
|
esptool==3.3.1
|
||||||
click==8.1.3
|
click==8.1.3
|
||||||
esphome-dashboard==20220920.1
|
esphome-dashboard==20220925.0
|
||||||
aioesphomeapi==10.13.0
|
aioesphomeapi==10.13.0
|
||||||
zeroconf==0.39.1
|
zeroconf==0.39.1
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user