Source Insight Forum

This is a community forum and not official technical support. — If you need official support: Contact Us

The following comments are owned by whoever posted them. We are not responsible for them in any way.

Back to Threads Reply to Thread

help! guys i dont know where i massed up.,..

define Bulb_A = rPWM4; //30 R230

define Bulb_B = rPWM5; //29 R229

define Bulb_C = rPWM6; //28 R226

define Bulb_D = rPWM7; //27 R225

define HIGH

define LOW

//=
void start()
{
pinMode(Bulb_A, OUTPUT);
pinMode(Bulb_B, OUTPUT);
pinMode(Bulb_C, OUTPUT);
pinMode(Bulb_D, OUTPUT);
}
void main()
{
for(;;)
{
digitalWrite(Bulb_A, LOW); //turn on
delay(1000);
digitalWrite(Bulb_B, LOW);
delay(1000);
digitalWrite(Bulb_C, LOW);
delay(1000);
digitalWrite(Bulb_D, LOW);
delay(1000);
digitalWrite(Bulb_D, HIGH); //turn off
delay(1000);
digitalWrite(Bulb_C, HIGH);
delay(1000);
digitalWrite(Bulb_B, HIGH);
delay(1000);
digitalWrite(Bulb_A HIGH);
delay(1000);
return 0;
}
and the error says
SRC\main.c(15): error C141: syntax error near '='
Target not created

even if i removed #high and low, it will appears error brrrr

CrossOver Forums: the place to discuss running Windows applications on Mac and Linux

CodeWeavers or its third-party tools process personal data (e.g. browsing data or IP addresses) and use cookies or other identifiers, which are necessary for its functioning and required to achieve the purposes illustrated in our Privacy Policy. You accept the use of cookies or other identifiers by clicking the Acknowledge button.
Please Wait...
eyJjb3VudHJ5IjoiVVMiLCJsYW5nIjoiZW4iLCJjYXJ0IjowLCJ0enMiOi02LCJjZG4iOiJodHRwczpcL1wvbWVkaWEuY29kZXdlYXZlcnMuY29tXC9wdWJcL2Nyb3Nzb3Zlclwvd2Vic2l0ZSIsImNkbnRzIjoxNzM4NzIzMjIwLCJjc3JmX3Rva2VuIjoiZTM0VlgzNVViZkxmVkxzeCIsImdkcHIiOjB9