Here is my code:
{
;pinMode(LiftMotor, OUTPUT); //Sets the lift motor Relay pin as an output
pinMode(StationMotor, OUTPUT); //Sets the Station Relay pin as an output
pinMode(Estop, INPUT); //Sets the Estop pin as an input
pinMode(Dispatch, INPUT); //Sets the Dispatch pin as an input
pinMode(LiftStart, INPUT); //Sets the LiftStart pin as an input
pinMode(LiftStop, INPUT); //Sets the LiftStop pin as an input
pinMode(trigPinS, OUTPUT); // Sets the trigPinS as an Output
pinMode(echoPinS, INPUT); // Sets the echoPinS as an Input
pinMode(trigPinL, OUTPUT); // Sets the trigPinL as an Output
pinMode(echoPinL, INPUT); // Sets the echoPinL as an Input
pinMode(trigPinB, OUTPUT); // Sets the trigPinB as an Output
pinMode(echoPinB, INPUT); // Sets the echoPinB as an Input
pinMode(trigPinLB, OUTPUT); // Sets the trigPinLB as an Output
pinMode(echoPinLB, INPUT); // Sets the echoPinLB as an Input
pinMode(DispLED, OUTPUT); //Sets the Dispatch button LED relay pin as an output
Holding.attach(3); //Initializes the pin for the servo motor
Serial.begin(9600);
}
Error messages:
LEGO_Coaster_Proj:43:9: error: expected constructor, destructor, or type conversion before '(' token
;pinMode(LiftMotor, OUTPUT); //Sets the lift motor Relay pin as an output
^
LEGO_Coaster_Proj:44:8: error: expected constructor, destructor, or type conversion before '(' token
pinMode(StationMotor, OUTPUT); //Sets the Station Relay pin as an output
^
LEGO_Coaster_Proj:45:8: error: expected constructor, destructor, or type conversion before '(' token
pinMode(Estop, INPUT); //Sets the Estop pin as an input
^
LEGO_Coaster_Proj:46:8: error: expected constructor, destructor, or type conversion before '(' token
pinMode(Dispatch, INPUT); //Sets the Dispatch pin as an input
^
LEGO_Coaster_Proj:47:8: error: expected constructor, destructor, or type conversion before '(' token
pinMode(LiftStart, INPUT); //Sets the LiftStart pin as an input
^
LEGO_Coaster_Proj:48:8: error: expected constructor, destructor, or type conversion before '(' token
pinMode(LiftStop, INPUT); //Sets the LiftStop pin as an input
^
LEGO_Coaster_Proj:49:8: error: expected constructor, destructor, or type conversion before '(' token
pinMode(trigPinS, OUTPUT); // Sets the trigPinS as an Output
^
LEGO_Coaster_Proj:50:8: error: expected constructor, destructor, or type conversion before '(' token
pinMode(echoPinS, INPUT); // Sets the echoPinS as an Input
^
LEGO_Coaster_Proj:51:8: error: expected constructor, destructor, or type conversion before '(' token
pinMode(trigPinL, OUTPUT); // Sets the trigPinL as an Output
^
LEGO_Coaster_Proj:52:8: error: expected constructor, destructor, or type conversion before '(' token
pinMode(echoPinL, INPUT); // Sets the echoPinL as an Input
^
LEGO_Coaster_Proj:53:8: error: expected constructor, destructor, or type conversion before '(' token
pinMode(trigPinB, OUTPUT); // Sets the trigPinB as an Output
^
LEGO_Coaster_Proj:54:8: error: expected constructor, destructor, or type conversion before '(' token
pinMode(echoPinB, INPUT); // Sets the echoPinB as an Input
^
LEGO_Coaster_Proj:55:8: error: expected constructor, destructor, or type conversion before '(' token
pinMode(trigPinLB, OUTPUT); // Sets the trigPinLB as an Output
^
LEGO_Coaster_Proj:56:8: error: expected constructor, destructor, or type conversion before '(' token
pinMode(echoPinLB, INPUT); // Sets the echoPinLB as an Input
^
LEGO_Coaster_Proj:57:8: error: expected constructor, destructor, or type conversion before '(' token
pinMode(DispLED, OUTPUT); //Sets the Dispatch button LED relay pin as an output