Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void getData(){
- Bluetooth_parseSpeed(&speed);
- Bluetooth_parseServo(&servo);
- Bluetooth_parseDirection(&direction);
- Bluetooth_parseLights(&lights);
- Bluetooth_parseHorn(&horn);
- PORTA|=(1<<PA0);
- // last2(&speed,&servo,&direction,&lights,&horn);
- if(speed<=0 || speed>255)
- speed = SPEED_DEFAULT;
- if(servo<355 || servo>450)
- servo = SERVO_DEFAULT;
- if(direction!=0 && direction!=1)
- direction = DIRECTION_DEFAULT;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement