#include <SoftwareSerial.h>
#include <Servo.h>
#include <Blinker.h>
#define BLINKER_WIFI
#define RX 2
#define TX 3
SoftwareSerial swSerial(RX, TX); // 软串口
Servo servo; // 舵机对象
int motorA1 = 4;
int motorA2 = 5;
int motorB1 = 6;
int motorB2 = 7;
int motorSpeedA = 9;
int motorSpeedB = 10;
int voltagePin = A0;
int voltageValue = 0;
int motorSpeed = 0;
char auth[] = "BF5A1E84QH6R";
void setup()
{
Serial.begin(115200);
Blinker.begin(auth);
swSerial.begin(9600);
servo.attach(8);
pinMode(motorA1, OUTPUT);
pinMode(motorA2, OUTPUT);
pinMode(motorB1, OUTPUT);
pinMode(motorB2, OUTPUT);
pinMode(motorSpeedA, OUTPUT);
pinMode(motorSpeedB, OUTPUT);
}
vo