Update 'Deplacement-robot/bluetooth_control/bluetooth_control.ino'
This commit is contained in:
parent
a14db7e880
commit
a036ab0626
|
|
@ -1,5 +1,5 @@
|
|||
#include <SoftwareSerial.h>
|
||||
|
||||
const int analogPin = A0; // Analog input pin on Arduino
|
||||
#define RX_PIN 13 // Connected to HC-05 TX pin
|
||||
#define TX_PIN 12 // Connected to HC-05 RX pin
|
||||
#define LED_PIN 2 // Connected to LED pin
|
||||
|
|
@ -12,7 +12,7 @@ char receivedCommand;
|
|||
int directionMultiplier = 1;
|
||||
int directionMultiplier2 = -1;// = 1: positive direction, = -1: negative direction
|
||||
bool newData, runallowed = false; // booleans for new data from serial, and runallowed flag
|
||||
AccelStepper stepper(1, 8, 9);// pulses Digital 8 (CLK) direction Digital 9 (CCW),
|
||||
AccelStepper stepper(1, 9, 10);// pulses Digital 8 (CLK) direction Digital 9 (CCW),
|
||||
AccelStepper stepper2(1, 5, 6);
|
||||
SoftwareSerial bluetooth(RX_PIN, TX_PIN); // Create a software serial object
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue