Hello!
A few issues.
1. You show code, but you don't display everything.
2. Let's consider your main program. Your program will do panel(), but you don't define
the panel() function is not defined, so we don't know what it does and we can't help you.
3. You define button = 0, you test button in increment_button, but button is never set
anywhere, so it will stay at 0. Therefore count will never be incremented.
And even if you set it somewhere, you have to reset it to 0 somewhere else, otherwise
the loop will keep incrementing the count about one million times a second.
4. dsp_buf = [n]; ->what do you think it will do?
5. dispset_title(void). I'm not sure what it will do, but TITL1[n] is not defined.
Beside this, if you just want to display the title, why not first making a function that writes
a string, what ever it is?
for example:
Code:
void write_string(uint8 line, uint8 col, const char * str) {
[implementation]
}
and then call your function:
write_string(0, 2, Line1]; // Write "hello, world" centered on first line.
6. What do you want to do with 2 similar functions lcd_cout and lcd_dout?
You never use lcd_cout. Why do you leave it in your code?
Etc, etc...
Dora