Update 'Deplacement-robot/bluetooth_control/bluetooth_control.ino'

This commit is contained in:
Estevan BIAU-LOYER 2023-12-12 14:05:09 +01:00
parent a14db7e880
commit a036ab0626
1 changed files with 2 additions and 2 deletions

View File

@ -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