Created
November 19, 2019 01:31
-
-
Save kreier/9a770bef409459ff8820daa2326cbe6b to your computer and use it in GitHub Desktop.
T300
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Most simple setup with just 8 bluetooth keys | |
// Standard settings: A-up B-right C-down D-left E-fast F-select G-stop H-start autonomous - no extra keys | |
#include <SoftwareSerial.h> | |
#include <NewPing.h> | |
#include <Servo.h> | |
#define TRIGGER_PIN 2 | |
#define ECHO_PIN 3 | |
#define BUZZER_PIN 4 | |
#define BLUETOOTH_RX 8 | |
#define BLUETOOTH_TX 1 | |
#define SERVO_PIN 9 | |
#define E1 10 // enable - with PWM | |
#define M1 12 | |
#define E2 11 | |
#define M2 13 | |
#define MAX_DISTANCE 350 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment