# 四按键模块

## 概述

四按键模块通过AD采样实现的 ，只能接在模拟口。每个按键对应一个AD采样值（不同的输出电压值），从而实现不同按键的判别。

## 参数

* 尺寸：48x24mm
* 工作电压：+3.3-5V
* 接口类型：XH2.54mm-3P
* 引脚定义：1-地 2-电源 3-信号

## 接口说明

* 可用端口：2、3、4、9、10、11、12、13、A0、A1、A2、A3

## 使用方式

![](/files/-LWVPVZiVq8NsMlaSPnh)

## 示例代码

![](/files/-LWVPVZnFCqMH5W9HGvB)

![](/files/-LWVPVZpmA42o4Rde1P_)

[四按键模块示例代码](http://www.haohaodada.com/show.php?id=955490)

## 原理图

{% file src="/files/-LrD64UkQktdWpC-KLBo" %}
四按键模块原理图
{% endfile %}

## 尺寸说明

![](/files/-LWVPVZrV-K4lTNoPkbO)

## 常见问题


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.haohaodada.cn/jiao-xue-chan-pin/arduino-kai-yuan-ying-jian/si-an-jian-mo-kuai.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
