Lähettimen lähdekoodi v1: Revision history

From Pessin randon wiki

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

3 October 2025

  • curprev 14:3514:35, 3 October 2025 Exf talk contribs 1,233 bytes +1,233 Created page with "Lähettimen lähdekoodi V1<syntaxhighlight lang="c#"> #include <RH_ASK.h> #include <SPI.h> RH_ASK driver(1000); #define TX_PIN 12 #define DIP1 2 #define DIP2 3 #define DIP3 4 #define DIP4 5 byte crc8_dallas(const String &data) { byte crc = 0x00; for (int i = 0; i < data.length(); i++) { crc ^= data[i]; for (int j = 0; j < 8; j++) { crc = (crc & 0x80) ? (crc << 1) ^ 0x31 : (crc << 1); } } return crc; } void setup() { driver.init(); pinMod..." Tag: Visual edit