Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Library collides with keypad.h (keypad.cpp) IDLE in Variable pls change #30

Open
Meins321 opened this issue Jul 1, 2020 · 1 comment

Comments

@Meins321
Copy link

Meins321 commented Jul 1, 2020

@sumotoy
Hello everyone,

i do use this library together with a keypad (4x4 Foil) and it throws compile errors in arduino ide because of the use of "IDLE" variable which is already used by lots of other librarys.
maybe we can change IDLE to IDLE_TFT in ?

The standard Arduion Keypad IDE suggests to use the Keypad v3.1.1 by Mark Stanley, Alexander Brevig found here:
https://github.com/Chris--A/Keypad and https://playground.arduino.cc/Code/Keypad/
together with our library here throws errors

DebugOut ```C# libraries\Keypad\src/Key.h:41:15: error: redeclaration of 'IDLE' typedef enum{ IDLE, PRESSED, HOLD, RELEASED } KeyState libraries\TFT_ST7735-1.0p1/TFT_ST7735.h:104:38: note: previous declaration 'ST7735_modes IDLE' enum ST7735_modes { NORMAL=0,PARTIAL,IDLE,SLEEP,INVERT,DISP_ON,DISP_OFF };//0,1,2,3,4,5,6 ```

Change:

enum ST7735_modes { NORMAL=0,PARTIAL,**IDLE**,SLEEP,INVERT,DISP_ON,DISP_OFF };//0,1,2,3,4,5,6 to
enum ST7735_modes { NORMAL=0,PARTIAL,**IDLE_TFT**,SLEEP,INVERT,DISP_ON,DISP_OFF };//0,1,2,3,4,5,6

Any help very appreciated

For the time now anyone can change in the keyboard lib IDLE to IDLE_KEY:
Keypad_IDLE_Change

@Meins321 Meins321 changed the title Library collides with keypad.h (keypad.cpp) IDLE de Library collides with keypad.h (keypad.cpp) IDLE in Variable pls change Jul 1, 2020
@Meins321
Copy link
Author

Meins321 commented Feb 1, 2022

@sumotoy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant