Új hozzászólás Aktív témák

  • Szita1

    tag

    A küldött (sendTelegram(code) értékére lennék kiváncsi, hogy tudom ezt kiszámolni?? :S

    receivedCode=530713;
    period=125;

    //Copy the received code.
    code = receivedCode & 0xFFFFF; //truncate to 20 bits for show; receivedCode is never more than 20 bits..

    //Add the period duration to the code. Range: [0..511] (9 bit)
    code |= (unsigned long)period << 23;

    //Add the number of repeats to the code. Range: [0..7] (3 bit). The actual number of repeats will be 2^(repeats),
    //in this case 8
    code |= 3L << 20;

    //Retransmit the signal on pin 11. Note: no object was created!
    RemoteTransmitter::sendTelegram(code,10);

    Ha ez sikerülne talán RCSwitchel tudnám küldeni a helyes kódot.

    [ Szerkesztve ]

Új hozzászólás Aktív témák