Hi,
it's my second arduino project and it looks like i am stuck. I didn't find my answer anywhere, so i hope you can help me.
What i want to do sound simple, is to write digits/numbers with the 3x4 Keypad and make them appear on the 8x32 MX7219 dot matrix next to each others, then press '*' to erase the dot matrix. But so far, i can only find the way to show the multiple digits number without keypad(quite easy but i need to connect to a computer to change it) and with the 3x4 keypad i can only show the last number punched and clear the screen.
Or i don't know if it will be easier if when we press the '#' button on the keypad, it shows the digits combination punched. I tried multiple projects code to try to make it work but i failed
Here's the code for now
#include <MD_Parola.h>
#include <MD_MAX72xx.h>
#include <SPI.h>
#include <Keypad.h>
#define HARDWARE_TYPE MD_MAX72XX::FC16_HW
#define MAX_DEVICES 4
#define DATA_PIN 11
#define CS_PIN 9
#define CLK_PIN 10
char hexaKeys[4][3] = {
{'1','2','3'},
{'4','5','6'},
{'7','8','9'},
{'*','0','#'}
};
byte rowPins[4] = {8,7,6,5};
byte colPins[3] = {4,3,2};
Keypad customKeypad = Keypad(makeKeymap(hexaKeys),rowPins,colPins,4,3);
MD_Parola myDisplay = MD_Parola(HARDWARE_TYPE, DATA_PIN, CLK_PIN, CS_PIN, MAX_DEVICES);
void setup()
{
Serial.begin(9600);
myDisplay.begin();
myDisplay.setIntensity(0);
myDisplay.displayClear();
myDisplay.setTextAlignment(PA_CENTER);
}
void loop()
{
char customKey = customKeypad.getKey();
if (customKey)
{
myDisplay.print(customKey);
if (customKey == '*')
{
myDisplay.displayClear();
}
}
}

