这是本文档旧的修订版!


4*4 matrix keyboard module

4*4 capacitive matrix keyboard, reading analog quantities and interpreting corresponding key values。

Working voltage: 3.3V~5V

analog sensor

Use PH-2.03P socket

The sensor matches Arduino, Micropython, etc.

序号名称功能描述
1VCC3V3~5V电源正极
2GND电源负极
3S模拟信号输出

Arduino library file downloadopen in new window

When using the sample code, the library files need to be placed in the same folder. (As shown below)

sample code

''/*!
 * WMNologo
 * 矩阵键盘
 *
 */
#include "Matrix_buttons.h"
// 创建对象
Matrix_buttons Matrix_buttons1;

// 主程序开始
void setup() {
  Serial.begin(9600);
}
void loop() {
//S信号线接入A0
  Serial.println(Matrix_buttons1.get_follow_sensor(A0));
}
''

#result

The serial port prints the value corresponding to the matrix keyboard

If you need to expand, you can contact the group owner in the QQ group for development

请输入您的评论. 可以使用维基语法:
 
  • developmentboard/4_4矩阵键盘模块.1693815670.txt.gz
  • 最后更改: 2023/09/04 08:21
  • admin12