Hello, I have finally found a library that builds a bridge between the keypad library and l2c multiplexers, which I am really happy about. Until I realised it doesn't compile to m0/m4 because of the wire library. My question is if the whole library needs to be rewritten. Maybe if its just the pin definitions someone could help me out and give some pointers on how to do it? Error log is posted below.
In file included from
/var/folders/8m/c61ms1r11cbchg5ms2z3jgvh0000gn/T/
arduino_modified_sketch_199917/MultiKey_MC17.ino:19:0:
/Users/brorgustav/Documents/Arduino/Sketches/libraries/Keypad_MC17/
/Keypad_MC17.h: In constructor 'Keypad_MC17::Keypad_MC17(char*, byte*,
/byte*, byte, byte, byte)':
/Users/brorgustav/Documents/Arduino/Sketches/libraries/Keypad_MC17/
/Keypad_MC17.h:49:48: error: no matching function for call to
/'TwoWire::TwoWire()'
Keypad(userKeymap, row, col, numRows, numCols) { i2caddr = address; }
^
/Users/brorgustav/Documents/Arduino/Sketches/libraries/Keypad_MC17/
/Keypad_MC17.h:49:48: note: candidates are:
In file included from
/Users/brorgustav/Documents/Arduino/Sketches/libraries/Keypad_MC17/
Keypad_MC17.h:44:0, from
/var/folders/8m/c61ms1r11cbchg5ms2z3jgvh0000gn/T/
arduino_modified_sketch_199917/MultiKey_MC17.ino:19:
/Users/brorgustav/Library/Arduino15/packages/adafruit/hardware/samd/1.5.
/3/libraries/Wire/Wire.h:35:5: note: TwoWire::TwoWire(SERCOM*, uint8_t,
/uint8_t)
TwoWire(SERCOM *s, uint8_t pinSDA, uint8_t pinSCL); ^
/Users/brorgustav/Library/Arduino15/packages/adafruit/hardware/samd/1.5.
/3/libraries/Wire/Wire.h:35:5: note: candidate expects 3 arguments, 0
/provided
/Users/brorgustav/Library/Arduino15/packages/adafruit/hardware/samd/1.5.
/3/libraries/Wire/Wire.h:32:7: note: constexpr TwoWire::TwoWire(const
/TwoWire&)
class TwoWire : public Stream ^
/Users/brorgustav/Library/Arduino15/packages/adafruit/hardware/samd/1.5.
/3/libraries/Wire/Wire.h:32:7: note: candidate expects 1 argument, 0
/provided
/Users/brorgustav/Library/Arduino15/packages/adafruit/hardware/samd/1.5.
/3/libraries/Wire/Wire.h:32:7: note: constexpr
/TwoWire::TwoWire(TwoWire&&)
/Users/brorgustav/Library/Arduino15/packages/adafruit/hardware/samd/1.5.
/3/libraries/Wire/Wire.h:32:7: note: candidate expects 1 argument, 0
/provided
Using library Keypad at version 3.1.1 in folder:
/Users/brorgustav/Documents/Arduino/Sketches/libraries/Keypad Using
library Keypad_MC17 in folder:
/Users/brorgustav/Documents/Arduino/Sketches/libraries/Keypad_MC17
(legacy) Using library Wire at version 1.0 in folder:
/Users/brorgustav/Library/Arduino15/packages/adafruit/hardware/samd/1.5.
3/libraries/Wire exit status 1 Error compiling for board Adafruit
Feather M4 Express (SAMD51).