riji
楸壳
这个作者很懒,什么都没留下…
展开
-
2020-11-26
#define D_a 2 //数码管a 接引脚 2 #define D_b 3 #define D_c 4 #define D_d 5 #define D_e 6 #define D_f 7 #define D_g 8 #define D_h 9 //数码管0-F数字码值 unsigned char num[20][8] = { //1为点亮,0为关闭,a表示数码管a的led灯,其他类似 //a b c d e f g h {1, 1, 1, 1, 1, 1, 0, 0},原创 2020-11-26 20:49:32 · 51 阅读 · 0 评论 -
日记
#include <OneWire.h> #include <DallasTemperature.h> // 定义DS18B20数据口连接arduino的2号IO上 #define ONE_WIRE_BUS 2 // 初始连接在单总线上的单总线设备 OneWire oneWire(ONE_WIRE_BUS); DallasTemperature sensors(&oneWire); int redPin = 7; int greenPin = 9; int bluePi原创 2020-11-22 16:00:18 · 152 阅读 · 0 评论