随笔分类 - 智能家居
Arduino 433 自定义接受
摘要:/* Simple example for receiving https://github.com/sui77/rc-switch/ */ #include #define led1 10 #define led2 11 RCSwitch mySwitch = RCSwitch(); void setup() { Serial.begin(9600); ...
阅读全文
Arduino 433 自定义发射
摘要:/* This is a minimal sketch without using the library at all but only works for the 10 pole dip switch sockets. It saves a lot of memory and thus might be very useful to use with ATTinys :) ...
阅读全文
STM8
摘要:STM8L101F3P6查询发送中断接收 http://blog.csdn.net/sy_lixiang/article/details/34076317 STM8L103F3P6,内部时钟,16MHz,串口查询发送中断接收。 本程序模拟一小段协议的解析,接收到报文0xc2,0x01,0x7b后返回
阅读全文