#include <Keypad.h>
#include <GyverOLED.h>
GyverOLED<SSD1306_128x64, OLED_NO_BUFFER> di;
Keypad(makeKeymap(userKeymap), row[], col[], rows, cols)
const byte rows = 4; //стро
const byte cols = 3; //столб
char keys[rows][cols] = {
{'й','ц','у','к','е','н','г','ш','щ','з','х','ъ'},
{'ф','ы','в','а','п','р','о','л','д','ж','э','-'},
{'я','ч','с','м','и','т','ь','б','ю','.',' ',},
{'#','0','*'}
};
byte rowPins[rows] = {5, 4, 3, 2}; //стро
byte colPins[cols] = {8, 7, 6}; //столб
Keypad keypad = Keypad( makeKeymap(keys), rowPins, colPins, rows, cols );
void setup() {
// put your setup code here, to run once:
Serial1.begin(115200);
Serial1.println("Hello, Raspberry Pi Pico W!");
di.init();
di.clear();
di.home();
di.print("assalam aleykum");
}
void loop() {
// put your main code here, to run repeatedly:
delay(1); // this speeds up the simulation
}
Loading
pi-pico-w
pi-pico-w