mirror of
https://github.com/esphome/esphome.git
synced 2024-12-23 05:54:56 +01:00
Align SPI data rates in C++ code with Python (#5284)
This commit is contained in:
parent
e600784ebf
commit
02a71cb6a7
2 changed files with 3 additions and 0 deletions
|
@ -23,7 +23,9 @@ SPI_DATA_RATE_OPTIONS = {
|
|||
40e6: SPIDataRate.DATA_RATE_40MHZ,
|
||||
20e6: SPIDataRate.DATA_RATE_20MHZ,
|
||||
10e6: SPIDataRate.DATA_RATE_10MHZ,
|
||||
8e6: SPIDataRate.DATA_RATE_8MHZ,
|
||||
5e6: SPIDataRate.DATA_RATE_5MHZ,
|
||||
4e6: SPIDataRate.DATA_RATE_4MHZ,
|
||||
2e6: SPIDataRate.DATA_RATE_2MHZ,
|
||||
1e6: SPIDataRate.DATA_RATE_1MHZ,
|
||||
2e5: SPIDataRate.DATA_RATE_200KHZ,
|
||||
|
|
|
@ -63,6 +63,7 @@ enum SPIDataRate : uint32_t {
|
|||
DATA_RATE_1MHZ = 1000000,
|
||||
DATA_RATE_2MHZ = 2000000,
|
||||
DATA_RATE_4MHZ = 4000000,
|
||||
DATA_RATE_5MHZ = 5000000,
|
||||
DATA_RATE_8MHZ = 8000000,
|
||||
DATA_RATE_10MHZ = 10000000,
|
||||
DATA_RATE_20MHZ = 20000000,
|
||||
|
|
Loading…
Reference in a new issue