This project is a replication of IKEA Klockis Travel Clock on M5Stack:
M5stack Version shows date and time, and when you roll it over 90 degrees it shows temperature, and roll it again there comes timer and roll one more time, there it is.
Gets the time date from NTPServer. This screen also shows Battery Left / Charging.
Gets the temperature from MQTT message.
Alarm blinks the RGB LEDs and buzzer sound included. Can be set by MQTT message.
Alarm blinks the RGB LEDs and buzzer sound included. Can be set by MQTT message.
Command Topic: m5ikea/command
Command message:
{ "temperature": -8, "brightness": 10, "powersave": true, "timer" : "03:15", "alarm" : "14:12" }
You can use only one of, or more of the commands in the json like:
{"temperature": 34}
temperature (signed float): It still will show as signed integer in the clock.
brightness (unsigned integer): Between 0-100, 100 being brightest, 1 dimmest, 0 shut down LCD.
powersave (boolean): true dims the LCD to "10" after keeping the clock some sceonds in the same position, whether plugged in or battery.
timer (char, XX:XX): 00:00 to 99:99
alarm (char, XX:XX): 00:00 to 23:59
This uses the MPU8668 accelerator version of M5Stack Fire (core). If your m5Stack has MPU9250 (Early version) or other, you need to change the accelerometer code.
Compiled with Arduino IDE 2.0
代码:https://github.com/febalci/M5Stack_IKEA_Clock
ESP32的DAC函数可以实现真正的模拟输出。
ESP32 没有Arduino输出 PWM 的 analogWrite(pin, value) 方法,取而代之的 ESP32 有一个 LEDC 来实现PWM功能。
本文学习如何使用ESP32开发板来进行多线程的开发。
ESP8266有三种工作模式,分别为:AP,STA,AP混合STA
ESP32有四个SPI外设,分别为SPI0、SPI1、HSPI和VSPI。
ESP32有2个硬件I2C总线接口,接口可以配置为主机或从机模式。
在使用ESP32-CAM发布了一些项目后,一些读者在尝试使用 ESP32-CAM 时报告了问题。本指南汇总了使用 ESP32-CAM 时最常见的错误以及如何修复它们。
本文介绍SSD1306 OLED屏在ESP32中的使用,程序为MicroPython开发。
本文详细介绍如何在Arduino环境中使用ESP32板,通过TFT_ESPI库,轻松地点亮TFT屏幕。
本文介绍ESP32采用Arduino框架u8g2库驱动OLED屏显示中文。
专属教研服务系统,助您构建STEM课程体系,打造一站式教学环境。