Problem solved by following changes:
1. add ";" at the end of array definition.
2. there should not be "{}" at the end of function declaration.
3. "P2.2" should be "P2_2".
4. "sdcc -c -mmcs51 --std-sdcc89 display.c" should be "sdcc -c -mmcs51 display.c".
Last edit: Mian Qi 2024-02-12
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I wrote "display.h" this way:
and, "display.c" this way:
after "sdcc -c -mmcs51 --std-sdcc89 display.c", it prompted:
what's wrong with it?
Last edit: Mian Qi 2024-02-12
Problem solved by following changes:
1. add ";" at the end of array definition.
2. there should not be "{}" at the end of function declaration.
3. "P2.2" should be "P2_2".
4. "sdcc -c -mmcs51 --std-sdcc89 display.c" should be "sdcc -c -mmcs51 display.c".
Last edit: Mian Qi 2024-02-12