12345678910111213141516171819202122232425262728293031 |
- #include <I2CRobot.h>
- int I2C_ID = 8;
- I2CRobot fliprobot(I2C_ID);
- void setup() {
- fliprobot.init();
- }
- void loop() {
- byte robot_control = '1';
- if (robot_control != -1) {
- switch(robot_control) {
- case '1':
- fliprobot.hello();
- break;
- case '2':
- fliprobot.order();
- break;
- case '3':
- fliprobot.check();
- break;
- case '4':
- fliprobot.custom(4);
- break;
- default:
- break;
- }
- }
- }
|