I keep getting an error

so i try to make a code for an IR sensor and remote but cant code it, and keep getting errors like this:

/tmp/3604285426/joystick_servo_test/IR_remote.ino:5:1: error: expected unqualified-id before '{' token
 {
 ^
Multiple libraries were found for "IRremote.hpp"
  Used: /home/builder/opt/libraries/irremote_4_3_1
  Not used: /home/builder/opt/libraries/vega_irremote_1_0_0
Error during build: exit status 1

and this is my code:


int TimesSignaled = 0;
void setup(); 
{
  Serial.begin(9600);
  pinMode(A2, INPUT);
  pinMode(2, OUTPUT);
  Serial.print("welcome, code has started.")
}

void loop() {
  
}

help is always appreciated! :grin:
best,
Dax

lose the semi colon..

~q

okay, ill try and see what happens!

1 Like

and missing one here..

~q

both worked, thanks!

1 Like

you're welcome..

happy coding.. ~q

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.