Notice the void which says "this function returns no value". Without a return type specifier the compiler will automatically assume int.
You haven't supplied a return type. Try:-
<<code>>
void Write_Command(unsigned char command){
nRD = 1;
DB = command;
RS = 0;
nWR = 0;
CS = 0;
CS = 1;
nWR = 1;
}
<</code>>
Notice the **void** which says "this function returns no value". Without a return type specifier the compiler will automatically assume **int**.
This site uses cookies to store information on your computer.
By continuing to use our site, you consent to our cookies.
If you are not happy with the use of these cookies, please review our
Cookie Policy
to learn how they can be disabled.
By disabling cookies, some features of the site will not work.
Access Warning
You do not have the correct permissions to perform this operation.
Hello. When I compile the code below I get the following error
"Explicit type is missing ("int" assumed) (E260-D)" in file "/main.cpp"
Any ideas to put me on the right track?
Here is the code.
//******************************************************************************
Write_Command(unsigned char command){
nRD = 1;
DB = command;
RS = 0;
nWR = 0;
CS = 0;
CS = 1;
nWR = 1;
}
//;******************************************************************************