1.硬件:
ESP32
RYG灯
手机
2.软件:
Arduino下的ESP32开发板
Blinker点灯APP
3.电路连接:
Arduino(RYG):GND(GND) R(12) Y(13) G(14)
4.代码:
/* *****************************************************************
*
* Download latest Blinker library here:
* https://github.com/blinker-iot/blinker-library/archive/master.zip
*
*
* Blinker is a cross-hardware, cross-platform solution for the IoT.
* It provides APP, device and server support,
* and uses public cloud services for data transmission and storage.
* It can be used in smart home, data monitoring and other fields
* to help users build Internet of Things projects better and faster.
*
* Make sure installed 2.5.0 or later ESP8266/Arduino package,
* if use