Datasheet
2. UIFlow
Schematic
#define SERVO_ADDR 0x53 //the IIC address of SERVO Module
/*
* control servo(CH channle) by us
*/
Wire.beginTransmission(SERVO_ADDR);
Wire.write(CH|0x00);
Wire.write(timeL);
Wire.write(timeH);
Wire.endTransmission();
/*
* control servo(CH channle) by angle
*/
Wire.beginTransmission(SERVO_ADDR);
Wire.write(CH|0x10);
Wire.write(angle);//0-180°
Wire.endTransmission();
arduino
M5Stack Docs
Wanna explore the easiest way of Servo programming?? Check out the Blockly Platform at UIFlow.