Bàn Phím Ma Trận Mềm 3x4 Keypad


₫ 14.000

Sản phẩm Bàn Phím Ma Trận Mềm 3x4 Keypad đang được mở bán với mức giá siêu tốt khi mua online, giao hàng online trên toàn quốc với chi phí tiết kiệm nhất,0 đã được bán ra kể từ lúc chào bán lần cuối cùng.Trên đây là số liệu về sản phẩm chúng tôi thống kê và gửi đến bạn, hi vọng với những gợi ý ở trên giúp bạn mua sắm tốt hơn tại Pricespy Việt Nam

Mô tả:
Module bàn phím ma trận 3x4 loại phím mềm.
Độ dài cáp: 88mm.
Nhiệt độ hoạt động 0 ~ 70oC.
Đầu nối ra 7 chân.
Kích thước bàn phím 76.9 x 69.2 mm
————————CODE THAM KHẢO———————-

Thư viện Keypad.h

//3x4 Arduino
// 1 - 2
// 2 - 3
// 3 - 4
// 4 - 5
// 5 - 6
// 6 - 7
// 7 - 8
//Nạp code mở Serial Monitor chọn No line ending, baud 9600.

#include "Keypad.h"

const byte Rows= 4; //number of rows on the keypad i.e. 4
const byte Cols= 3; //number of columns on the keypad i,e, 3

//we will definne the key map as on the key pad:

char keymap[Rows][Cols]=
{
{'1', '2', '3'},
{'4', '5', '6'},
{'7', '8', '9'},
{'*', '0', '#'}
};

byte rPins[Rows]= {8,7,6,5}; //Rows 0 to 3
byte cPins[Cols]= {4,3,2}; //Columns 0 to 2

// command for library forkeypad
//initializes an instance of the Keypad class
Keypad kpd= Keypad(makeKeymap(keymap), rPins, cPins, Rows, Cols);

void setup()
{
Serial.begin(9600); // initializing serail monitor
}

//If key is pressed, this key is stored in 'keypressed' variable
//If key is not equal to 'NO_KEY', then this key is printed out
void loop()
{
char keypressed = kpd.getKey();
if (keypressed != NO_KEY)
{
Serial.println(keypressed);
}

Sản Phẩm Liên Quan

HOT

Bikini hàng Âu

₫ 400.000
HOT
HOT

Bikini Thái

₫ 300.000
HOT

Bikini OKISS- QCXK

₫ 400.000
HOT

Bikini xuất Âu

₫ 300.000