差别
这里会显示出您选择的修订版和当前版本之间的差别。
两侧同时换到之前的修订记录 前一修订版 后一修订版 | 前一修订版 | ||
developmentboard:4_4矩阵键盘模块 [2024/04/02 16:06] – admin12 | developmentboard:4_4矩阵键盘模块 [2024/11/13 14:14] (当前版本) – 移除 admin | ||
---|---|---|---|
行 1: | 行 1: | ||
- | ====== 4*4 matrix keyboard module ====== | ||
- | |||
- | ===== Overview ===== | ||
- | |||
- | 4*4 capacitive matrix keyboard, reading analog quantities and interpreting corresponding key values。 | ||
- | |||
- | ===== Products real shot ===== | ||
- | |||
- | {{https:// | ||
- | |||
- | ===== Product parameters ===== | ||
- | |||
- | Working voltage: 3.3V~5V | ||
- | |||
- | analog sensor | ||
- | |||
- | Use PH-2.03P socket | ||
- | |||
- | The sensor matches Arduino, Micropython, | ||
- | |||
- | ===== pin description ===== | ||
- | |||
- | ^serial number^name^Function description| | ||
- | |1|VCC|3V3~5V power supply positive pole| | ||
- | |2|GND|Negative pole of power supply| | ||
- | |3|S|Analog signal output| | ||
- | |||
- | ===== Product Size ===== | ||
- | |||
- | {{https:// | ||
- | |||
- | ===== Tutorial ===== | ||
- | |||
- | ==== Arduino ==== | ||
- | |||
- | [[https:// | ||
- | |||
- | When using the sample code, the library files need to be placed in the same folder. (As shown below) | ||
- | |||
- | {{https:// | ||
- | |||
- | === sample code === | ||
- | < | ||
- | |||
- | ''/ | ||
- | * WMNologo | ||
- | * 矩阵键盘 | ||
- | * | ||
- | */ | ||
- | #include " | ||
- | // 创建对象 | ||
- | Matrix_buttons Matrix_buttons1; | ||
- | |||
- | // 主程序开始 | ||
- | void setup() { | ||
- | Serial.begin(9600); | ||
- | } | ||
- | void loop() { | ||
- | // | ||
- | Serial.println(Matrix_buttons1.get_follow_sensor(A0)); | ||
- | } | ||
- | '' | ||
- | |||
- | </ | ||
- | |||
- | === result === | ||
- | |||
- | The serial port prints the value corresponding to the matrix keyboard | ||
- | |||
- | ==== Mind+ ==== | ||
- | |||
- | [[https:// | ||
- | |||
- | ==== https:// | ||
- | |||
- | If you need to expand, you can contact the group owner in the QQ group for development | ||
- | |||