Go Down

Topic: LCD I2C + Keypad + Menu Layout (Read 758 times) previous topic - next topic

AffinityCreative

Apr 07, 2015, 04:36 am Last Edit: Apr 07, 2015, 04:37 am by AffinityCreative
Hi,

Not quite sure if someone will be able to help me but..........

I am currently trying to build a menu layout for a 20x4 LCD. I originally had the LCD working with the keypad to have a title screen and password login with password right and wrong screens.

I am using an Arduino Uno which is plugged into an 20x04 LCD (1602 model shown in fitzrig) via I2C Connection. The 4x4 Matrix keypad is plugged into the uno using pins 6-13.

After I have mastered the menu layout on the LCD I will add in a clock module for time and date and LED's which will hopefully be controlled using a transistor to reduce the amount of pins used by the Arduino.

After adding the bits of menu coding I have been getting continuous errors. Most I have been able to solve up until this point changing H files etc, but now I am at a bit of a loss as to what to change next as I am a beginner to arduino and coding. I have tried changing some things, but I get a longer list of errors, so I end up deleting the change.

The Errors I currently have:

Menu_Control_Uno.ino:34:18: error: expected unqualified-id before '=' token
Menu_Control_Uno.ino:82:11: note: in expansion of macro 'greenLED'
Menu_Control_Uno.ino:33:16: error: expected unqualified-id before '=' token
Menu_Control_Uno.ino:83:11: note: in expansion of macro 'redLED'
Menu_Control_Uno.ino: In function 'void setup()':
Menu_Control_Uno.ino:33:16: error: expected primary-expression before '=' token
Menu_Control_Uno.ino:106:11: note: in expansion of macro 'redLED'
Menu_Control_Uno.ino:34:18: error: expected primary-expression before '=' token
Menu_Control_Uno.ino:107:11: note: in expansion of macro 'greenLED'
Menu_Control_Uno.ino:33:16: error: expected primary-expression before '=' token
Menu_Control_Uno.ino:108:16: note: in expansion of macro 'redLED'
Menu_Control_Uno.ino:34:18: error: expected primary-expression before '=' token
Menu_Control_Uno.ino:109:16: note: in expansion of macro 'greenLED'
Menu_Control_Uno.ino: In function 'void invalidCode()':
Menu_Control_Uno.ino:33:16: error: expected primary-expression before '=' token
Menu_Control_Uno.ino:191:16: note: in expansion of macro 'redLED'
Menu_Control_Uno.ino:33:16: error: expected primary-expression before '=' token
Menu_Control_Uno.ino:203:16: note: in expansion of macro 'redLED'
Menu_Control_Uno.ino: In function 'void unlockDoor()':
Menu_Control_Uno.ino:34:18: error: expected primary-expression before '=' token
Menu_Control_Uno.ino:209:16: note: in expansion of macro 'greenLED'
Menu_Control_Uno.ino:34:18: error: expected primary-expression before '=' token
Menu_Control_Uno.ino:222:16: note: in expansion of macro 'greenLED'
Menu_Control_Uno.ino: At global scope:
Menu_Control_Uno.ino:256:2: error: expected unqualified-id before 'if'
Error compiling.




Attached is a PDF of the Menu Layout Hierachy to show how many menus, sub menus and their location. There is also a fitzrig diagram to demonstrate how everything is wired so far.

The menu coding is incomplete for my layout, but i haven't been able to find out how to create sub-sub menus to extend off what coding I have not to mention that I haven't been able to display anything after adding in the extra menu code because of the errors.
I tried adding the code into the message but it is too many characters so it is attached as a PDF


Any help or advice would be greatly appreciated.

Thanks


Go Up