C:\Documents and Settings\german\Escritorio\arduino-1.0.1\libraries\Keypad/utility/Key.h:46: error: conflicting declaration 'IDLE'C:\Documents and Settings\german\Escritorio\arduino-1.0.1\libraries\GSM/GSM3MobileAccessProvider.h:37: error: 'IDLE' has a previous declaration as 'GSM3_NetworkStatus_t IDLE'
It seems to be a conflict between libraries Keypad and GSM...Any idea how to solve it?
It does seem to be a conflict, but it seems to be a simple name clash rather than something more fundamental.
typedef enum{ IDLE, PRESSED, HOLD, RELEASED } KeyState;
enum GSM3_NetworkStatus_t { ERROR, IDLE, CONNECTING, GSM_READY, GPRS_READY, TRANSPARENT_CONNECTED};
iCONTROL_V11.cpp:2101:14: error: empty character constant
const byte ROWS = 4; //4 filasconst byte COLS = 3; //3 columnaschar keys[ROWS][COLS] = { { '1','2','3' } , { '4','5','6' } , { '7','8','9' } , { '*','0','#' }};byte rowPins[ROWS] = { 7, 6, 5, 4}; // reserva de memoria en bytes, conectar a los pines de filas del tecladobyte colPins[COLS] = { 10, 9, 8}; // reserva de memoria en bytes, conectar a los pines de columnas del tecladoKeypad keypad = Keypad( makeKeymap(keys), rowPins, colPins, ROWS, COLS );keypad.setHoldTime(50); // Tiempo de pulsado de boton. Default is 1000mSkeypad.setDebounceTime(20); // Tiempo de rebote de bootn. Default is 50mS
The problems is that when I connect the GSM shield from Arduino and Telefonico to the Arduino Mega my keypad doesn't respond.
It's up to me to do that??
Quote from: dgelectron on Sep 11, 2013, 05:41 pmIt seems to be a conflict between libraries Keypad and GSM...Any idea how to solve it?I made a first attempt at including a namespace in the keypad library which I just attached below. I did this while at work so I haven't had a chance to test it out. If you want to use the attached copy of the keypad library then you will need 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.