ESP8266+L298N
接线:L298N 8266
in1 - D0
in2 - D1
in3 - D2
in4 - D4
Arduino IDE 环境编程
需要添加blinker库
代码如下:
#define BLINKER_PRINT Serial
#define BLINKER_WIFI
#include <Blinker.h>
char auth[] = " ";//填写blinker创建的设备密钥
char ssid[] = " ";//填写wifi名称
char pswd[] = " ";//填写密码
#define BUTTON_1 "b1" //定义按键
#define BUTTON_2 "b2"
#define BUTTON_4 "b4"
#define BUTTON_5 "b5"
#define BUTTON_6 "b6"
#define BUTTON_8 "b8"
#define slider_0 "r1"
#define slider_1 "r2"
BlinkerButton Button1(BUTTON_1);
BlinkerButton Button2(BUTTON_2);
BlinkerButton B