|
|
View previous topic :: View next topic |
Author |
Message |
Kevin Benedict Guest
|
LCD.C problem |
Posted: Sat Jun 07, 2003 1:59 pm |
|
|
Usind LCD.C and getting error
Error[28] C:\PROJECTS\F84FANSW\LCD.C 139 : Expecting an identifier
Which is the first line of
void lcd_putc( char c) {
switch (c) {
case '\f' : lcd_send_byte(0,1);
delay_ms(2);
break;
case '\n' : lcd_gotoxy(1,2); break;
case '\b' : lcd_send_byte(0,0x10); break;
default : lcd_send_byte(1,c); break;
}
Any suggestions ?
___________________________
This message was ported from CCS's old forum
Original Post ID: 144515087 |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
Re: LCD.C problem |
Posted: Sat Jun 07, 2003 10:47 pm |
|
|
:=Usind LCD.C and getting error
:=
:=Error[28] C:\PROJECTS\F84FANSW\LCD.C 139 : Expecting an identifier
:=
:=Which is the first line of
:=
:=void lcd_putc( char c) {
------------------------------------------------------------
Can you tell us:
1. The name and version of your compiler.
2. The part number of the PIC you are using.
To try and duplicate your problem, I can compile the CCS
example, EX_LCDKB.C, which uses the LCD.C file. Do you
get that error when you compile that example file ?
I just need to verify that, before I test it.
___________________________
This message was ported from CCS's old forum
Original Post ID: 144515088 |
|
|
Kevin Benedict Guest
|
Re: LCD.C problem |
Posted: Sun Jun 08, 2003 8:02 pm |
|
|
Dumb mistake on my part, I was using some borrowed code and
C was define as the carry flag bit in another include file,
so the compiler did not like "lcd_putc( char c)"
I have corrected the #define statement.
Thanks for the help !
:=:=Usind LCD.C and getting error
:=:=
:=:=Error[28] C:\PROJECTS\F84FANSW\LCD.C 139 : Expecting an identifier
:=:=
:=:=Which is the first line of
:=:=
:=:=void lcd_putc( char c) {
:=------------------------------------------------------------
:=
:=Can you tell us:
:=
:=1. The name and version of your compiler.
:=
:=2. The part number of the PIC you are using.
:=
:=To try and duplicate your problem, I can compile the CCS
:=example, EX_LCDKB.C, which uses the LCD.C file. Do you
:=get that error when you compile that example file ?
:=I just need to verify that, before I test it.
___________________________
This message was ported from CCS's old forum
Original Post ID: 144515099 |
|
|
|
|
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
|