View previous topic :: View next topic |
Author |
Message |
ginny
Joined: 23 Aug 2008 Posts: 2
|
Flex_lcd |
Posted: Thu Oct 09, 2008 6:11 am |
|
|
I am new to C ,I am using CCS PCM under MPLab.
When I try to build flex_lcd I get the message
"Error 128 "flex_lcd.c" Line 28(1,43): A #DEVICE required before this line" can someone please help. |
|
|
Guest
|
|
Posted: Thu Oct 09, 2008 12:43 pm |
|
|
dont include that driver at the beginning of your .c file.
"#include <18f2455.h>" has to be called before "#include "Flex_LCD.c""
Do smthng like this:
Code: |
#include <18f2455.h>
#device ADC=10
#fuses HSPLL,PLL5,CPUDIV3,NOVREGEN,NOWDT,NOPROTECT,NOLVP,NODEBUG,NOPBADEN,WRTB,MCLR,NOCPD,NOWRTC
#use delay(clock=24000000)
#use rs232(baud=115200,xmit=PIN_C6, rcv=PIN_C7, STREAM=RS232)
#include "Flex_LCD.c"
...etc
|
|
|
|
|
|
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
|