bmp280 changes
This commit is contained in:
7
main.cpp
7
main.cpp
@ -18,7 +18,7 @@
|
||||
|
||||
EMPTY_INTERRUPT(WDT_OVERFLOW_vect);
|
||||
|
||||
static constexpr uint8_t id = 3;
|
||||
static constexpr uint8_t id = 4;
|
||||
static constexpr bool WATCH_DOOR = false;
|
||||
static constexpr bool BMP_280 = false;
|
||||
static constexpr bool DHT22 = true;
|
||||
@ -93,8 +93,7 @@ int main()
|
||||
if constexpr (DHT22)
|
||||
{
|
||||
debugBlink(false);
|
||||
uint8_t readret;
|
||||
readret = tempSensor.read();
|
||||
tempSensor.read();
|
||||
paket[0] = 1;
|
||||
paket[2] = tempSensor.temperature >> 8;
|
||||
paket[3] = tempSensor.temperature;
|
||||
@ -117,7 +116,7 @@ int main()
|
||||
debugBlink(false);
|
||||
paket[0] = 128;
|
||||
paket[2] = 0;
|
||||
paket[3] = 1;
|
||||
paket[3] = id;
|
||||
transmiter.sendPacket(paketUint);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user