Skip to content

Commit

Permalink
Walkaround for LEFT Y bug
Browse files Browse the repository at this point in the history
Working now but not solved
  • Loading branch information
SimonPucheu committed Mar 19, 2024
1 parent 09e9ef8 commit b203820
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Bull/Bull.ino
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ void setup ()
{
// Serial setup //
{
Serial.begin(9600);
Serial1.begin(9600);
#if DEBUG
Serial.begin(9600);
Serial.println("Serial communication's on...");
Serial.println("Bluetooth communication's on...");
Serial.println("Debug mode's on...");
Expand Down Expand Up @@ -92,7 +92,7 @@ void loop ()
{
{
bluetooth.message.set(JOYSTICK_LEFT_X, leftJoystick.x.getValue());
bluetooth.message.set(JOYSTICK_LEFT_Y, leftJoystick.y.getValue());
bluetooth.message.set(JOYSTICK_LEFT_Y, constrain(leftJoystick.y.getValue(), 1, 511));
bluetooth.message.set(JOYSTICK_LEFT_CLCK, leftJoystick.clck.getValue());
}
{
Expand Down

0 comments on commit b203820

Please sign in to comment.