Go Down

Topic: [SOLVED]GSM moden library conflict? (Read 5007 times) previous topic - next topic

maggieYong

Hey everyone, I meet the same problem.
I downloaded the new keypad library and replaced the old one.
But it seemed not work for me, I meet the compile the problem.
The compiling error is


FV1.ino: In function 'void keypadEvent(KeypadEvent)':
FV1.ino:211:10: error: 'PRESSED' was not declared in this scope
FV1.ino:211:10: note: suggested alternative:
In file included from C:\Users\130028T\Desktop\arduino-1.6.3-windows\arduino-1.6.3\libraries\Keypad/Keypad.h:36:0,
                 from FV1.ino:12:
C:\Users\130028T\Desktop\arduino-1.6.3-windows\arduino-1.6.3\libraries\Keypad/utility/Key.h:48:22: note:   'PRESSED'
  typedef enum{ IDLE, PRESSED, HOLD, RELEASED } KeyState;
                      ^
Error compiling.





Could anyone kindly offer me the instructions about how to "change the KeyState variables (IDLE, PRESSED, HOLD, or RELEASED) in your sketch to m_key::IDLE, m_key::PRESSED, m_key::HOLD, and m_key::RELEASED."???

Thank you in advance!


PaulS

Quote
Could anyone kindly offer me the instructions
Edit Key.h. Change the enum values to keyPRESSED, keyRELEASED, etc.

Change PRESSED to keyPRESSED, in the sketch. Change the other constants, as needed.
The art of getting good answers lies in asking good questions.

Go Up