Chris--A / Keypad

A version of the keypad library found in Wiring. This is just a copy made compatible with the Arduino IDE library manager.
GNU General Public License v3.0
257 stars 156 forks source link

Compatibility issue with STM32 and Arduino 1.8.5 #17

Closed NirajSMehta closed 6 years ago

NirajSMehta commented 6 years ago

while compiling it exits with,

exit status 1 Error compiling for board Maple Mini.

using STM32 (Maple Mini board) & Arduino 1.8.5

It would be great if you could fix the compatibility issue.

details are as :

/Keypad.h:50:22: error: invalid conversion from 'byte {aka unsigned char}' to 'WiringPinMode' [-fpermissive] pinMode(_pin, _mode); /Keypad.h:43:30: note: in expansion of macro '_mypinMode'

define pinMode(_pin, _mode) _mypinMode(_pin, _mode)

Keypad.h:80:50: note: in expansion of macro 'pinMode' virtual void pin_mode(byte pinNum, byte mode) { pinMode(pinNum, mode); } In file included from C:\Users\Niraj\Documents\Arduino\hardware\Arduino_STM32\STM32F1\cores\maple/wirish.h:55:0, from C:\Users\Niraj\Documents\Arduino\hardware\Arduino_STM32\STM32F1\cores\maple/Arduino.h:30, from sketch\stm32_06_kb_01.ino.cpp:1: C:\Users\Niraj\Documents\Arduino\hardware\Arduino_STM32\STM32F1\cores\maple/io.h:110:6: error: initializing argument 2 of 'void pinMode(uint8, WiringPinMode)' [-fpermissive] void pinMode(uint8 pin, WiringPinMode mode);