摘要:
esp32 OLED和呼吸灯 代码 #include <Wire.h> #include "SSD1306.h" #include <WiFi.h> #include <TimeLib.h> #include <NtpClientLib.h> //设置时区为东8 int8_t timeZone = 阅读全文
posted @ 2022-10-31 22:30
~内个臣呐~
阅读(185)
评论(0)
推荐(0)
摘要:
使用PWM实现LED呼吸灯 esp32开发板的几乎所有引脚支持PWM输出 1、ledcSetup()函数 double ledcSetup(uint8_t chan, double freq, uint8_t bit_num) 功能为设置LEDC通道对应的频率和计数复位(占空比) uint8_t c 阅读全文
posted @ 2022-10-31 22:30
~内个臣呐~
阅读(1153)
评论(0)
推荐(0)
摘要:
代码 #include <Wire.h> #include "SSD1306.h" unsigned char image[] = { /*-- 调入了一幅图像:C:\Users\chen\Desktop\未命名绘图.bmp --*/ /*-- 宽度x高度=32x32 --*/ 0x00,0x00, 阅读全文
posted @ 2022-10-31 22:29
~内个臣呐~
阅读(135)
评论(0)
推荐(0)
摘要:
esp32点亮4pinOLED屏幕 接线方法 屏幕是4pin的使用iic的协议使用SSD1306屏库 测试代码 #include <Wire.h> #include "SSD1306.h" SSD1306 display(0x3c, 21, 18); void setup() { display.i 阅读全文
posted @ 2022-10-31 08:44
~内个臣呐~
阅读(1929)
评论(0)
推荐(0)

浙公网安备 33010602011771号