I'm not sure why but this simple code snippet at the line where "char count;" is declared produce following error in CCS: "A numeric expression must appear here."
#define LCD_ENABLE_PIN PIN_D0
#define LCD_RS_PIN PIN_D1
#define LCD_RW_PIN PIN_D2
#define LCD_TYPE 2
#include <lcd.c>
void main()
{
set_tris_b(0b00001111);
lcd_init();
lcd_putc("\fTest...\n");
lcd_putc("Another one...");
delay_ms(2000);
lcd_putc("\f2 Seconds Later\n");
lcd_putc("LED high");
output_high(pin_b0);
delay_ms(3000);
lcd_putc("\fN3 Seconds Later\n");
lcd_putc("LED low");
char count;
for (count = 0; count < 3; count++)
{
output_b(0b00000000);
delay_ms(500);
output_b(0b11111111);
delay_ms(500);
}
output_b(0b00000000);
lcd_putc("\f");
}
Any ideas? I mean it's just the most standard declaration one could think of so I'm a bit perplexed.