CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

compiling errors

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
AWBHTNM



Joined: 25 Aug 2011
Posts: 1

View user's profile Send private message

compiling errors
PostPosted: Thu Aug 25, 2011 8:06 am     Reply with quote

I'm using CCS C compiler in order to run:

Code:
      unsigned int PCB_LEDs[2] = {LED7, LED8};
      unsigned int LED_Arry[4] = {LED9, LED10, LED11, LED12};
      int bitnum = 0;

      if (LED_Arry[] = 1)
         led_on(LED_Arry[]);
      else if (LED_Arry[] = 0)
         led_off(LED_Arry[]);

      while (LCDNumber == 1)
         LED_Arry[4] = (0,0,0,1);
      while (LCDNumber == 2)
         LED_Arry[4] = (0,0,1,0);
      while (LCDNumber == 3)
         LED_Arry[4] = (0,0,1,1);
      while (LCDNumber == 4)
         LED_Arry[4] = (0,1,0,0);
      while (LCDNumber == 5)
         LED_Arry[4] = (0,1,0,1);
      while (LCDNumber == 6)
         LED_Arry[4] = (0,1,1,0);
      while (LCDNumber == 7)
         LED_Arry[4] = (0,1,1,1);
      while (LCDNumber == 8)
         LED_Arry[4] = (1,0,0,0);


But I keep getting errors "nurmeric expression must appear here" and "expect ;" for my array declarations and "unidentified identifier LED_Arry".

You can also note that I have these LED values tied to integer values

Thx
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group