Here is the code I used on the receive side (Arduino USB board with Adafruit XBee adapter) connected to the steering servo and speed control on an old RC-10T truck: #include "Servo.h" #include "NewSoftSerial.h" int joyx,joyy = 135; int accx,accy = 125; int zbut,cbut = 0; int ledpin = 6; int wheelServo = 9; int motorServo = [...]
↧