Skip to main content
antonius
Associate III
Jul 8, 2019 10:58 AM UTC
Question

error: #18: expected a ")" ?

Dear Members,

I got this error: #18: expected a ")"  on this line :

LCD_SendCommand(lcd_addr, 0b00110000);

")" is already there, what's the issue ??

Thanks

This topic has been closed for replies.

5 replies

After Forever
Senior III
Jul 8, 2019 11:28 AM UTC

Check if lcd_addr is correctly defined. But most likely there is an error in one of the previous lines (or included files) which causes an error to that correct line. Check for unterminated by ";" lines, unterminated quotation marks or parenthesis.

Tesla DeLorean
Guru
Jul 8, 2019 11:50 AM UTC

Binary is not accepted by most compilers.​

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
antonius
antoniusAuthor
Associate III
Jul 8, 2019 11:51 AM UTC

so better be in hex ?

antonius
antoniusAuthor
Associate III
Jul 8, 2019 11:52 AM UTC

LCD_SendCommand(lcd_addr, 0x30h); ?

Tesla DeLorean
Guru
Jul 8, 2019 12:00 PM UTC

Lose the h, you're programming in C​

​

0x30​

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..