update for new transfer method
This commit is contained in:
@ -33,6 +33,10 @@ void W433DataTransmitter::sendData(const uint8_t data)
|
|||||||
void W433DataTransmitter::sendPacket(const uint32_t data)
|
void W433DataTransmitter::sendPacket(const uint32_t data)
|
||||||
{
|
{
|
||||||
_delay_ms(LONG_DELAY_MS);
|
_delay_ms(LONG_DELAY_MS);
|
||||||
|
sendSymbol(0b010101);
|
||||||
|
sendSymbol(0b101010);
|
||||||
|
sendSymbol(0b010101);
|
||||||
|
sendSymbol(0b101010);
|
||||||
sendSymbol(SIGNATURE & 0b111111);
|
sendSymbol(SIGNATURE & 0b111111);
|
||||||
sendSymbol(SIGNATURE >> 6);
|
sendSymbol(SIGNATURE >> 6);
|
||||||
for(uint8_t i = 0; i < 4; ++i)
|
for(uint8_t i = 0; i < 4; ++i)
|
||||||
|
3
main.cpp
3
main.cpp
@ -19,12 +19,11 @@
|
|||||||
|
|
||||||
EMPTY_INTERRUPT(WDT_OVERFLOW_vect);
|
EMPTY_INTERRUPT(WDT_OVERFLOW_vect);
|
||||||
|
|
||||||
static constexpr uint8_t id = 1;
|
static constexpr uint8_t id = 4;
|
||||||
static constexpr bool WATCH_DOOR = false;
|
static constexpr bool WATCH_DOOR = false;
|
||||||
static constexpr bool BMP_280 = false;
|
static constexpr bool BMP_280 = false;
|
||||||
static constexpr bool DHT22 = true;
|
static constexpr bool DHT22 = true;
|
||||||
|
|
||||||
|
|
||||||
static void power(const bool power)
|
static void power(const bool power)
|
||||||
{
|
{
|
||||||
if(power)
|
if(power)
|
||||||
|
Reference in New Issue
Block a user