We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
void init_LCM(void) { write_inst(0x30); /*set function*/ write_inst(0x30); /*set function*/ write_inst(0x30); /*set function*/ write_inst(0x38); /*set 2 line*/ write_inst(0x08); /*off lcd*/ write_inst(0x01); /*clear lcd*/ write_inst(0x06); /*set input mode*/ write_inst(0x0e); /*enable lcd*/ } after compiler,i got main.c(11): error C129: missing ';' before 'void',i don't understand?
>>i got main.c(11): error C129: missing ';' before 'void',i don't understand?
Look at the code immediately *BEFORE* the stuff you posted, something is WRONG EARLIER.
Look for missing semi-colons, or braces.