|
I recived these errors and i don't know how to fix it.
Error:" _main (/home/moodle/sites/productions/codecompiler/compilers/PIC_L/lib/pclrt40c.obj)"
Line:-1
source: /text message code.c
Error:"undefined symbol."
Line:-1
source: /text message code.c
#include "mxapi.h" int keyscan(void)//Renames the main function, calling it keyscan { int key = 0; //Declares a variable called key and sets it equal to 0 lcd_init(); RBPU=0; TRISB0=0; TRISB1=0; TRISB2=0; TRISB3=0; TRISB4=1; TRISB5=1; TRISB6=1; TRISB7=1; while(1==1) { RB3=0; if(RB7==0) { key=1; } else if(RB6==0) { key=5; } else if(RB5==0) { key=9; } else if(RB4==0) { key=13; } RB3=1; RB2=0; if(RB7==0) { key=2; } else if(RB6==0) { key=6; } else if(RB5==0) { key=10; } else if(RB4==0) { key=14; } RB0=1; return key; lcd_decimal(key); delay_ms(400); lcd_instruction(CLEAR); } }
|