News

1.3" OLED 128×64 SH1106 + AHT20+BMP280 + DS18B20
#include <OneWire.h> #include <DallasTemperature.h> #define ONE_WIRE_BUS 0 #include <U8g2lib.h> #include <Wire.h> // SH1106 128x64 I2C 对象 U8G2_SH1106_128X64_NONAME_F_HW_I2C u8g2(U8G2_R0, /* reset=*/ U8X8_PIN_NONE); #include <Adafruit_AHTX0.h> #include <Adafruit_BMP280.h>  // 新增:BMP280库 Adafruit_AHTX0 aht; Adafruit_BMP280 bmp;  // 新增:BMP280对象 const int adcPin = 1;  // GPIO1 (ADC1_CH1) char lcdbuffer[64]; int v_gap = 5; #include <BLEDevice.h> #include <BLEUtils.h> #include <BLEAdvertising.h> #include "esp_sleep.h" BLEAdvertising* pAdvertising; uint8_t device_id = 3; OneWire oneWire(ONE_WIRE_BUS); DallasTemperature sensors(&oneWire); // 平均滤波函数 int readADC_Avg(int pin) {   int sum = 0;   for (int i = 0; i < 10; i++) {     sum... Read more...
ESP32C3 BLE Bluetooth Low Energy Communication Example
ESP32C3 BLE Bluetooth Low Energy Communication Example
This example includes host and slave code. The slave broadcasts a message, then goes into a deep sleep for 1 second and repeats the process. The host receives the message.... Read more...
Tiny monitor based on ESP32C3 and 0.96" OLED
Tiny monitor based on ESP32C3 and 0.96" OLED
It automatically connects to Wi-Fi and obtains real-time updates of the CNN Fear Index. You can reprogram it with Arduino just like you would a regular ESP32C3. Order link Example... Read more...