From eda05007cce45ff32a1a7d1d6fb55b6ecc05f904 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=96=E5=8F=81?= Date: Fri, 27 Dec 2024 09:57:59 +0800 Subject: [PATCH] optimize: consts helper --- include/consts.example.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/consts.example.h b/include/consts.example.h index e7b80f0..1378e50 100644 --- a/include/consts.example.h +++ b/include/consts.example.h @@ -1,15 +1,20 @@ #ifndef __CONSTS_H__ #define __CONSTS_H__ +// 状态灯引脚与启用 #define STATUS_LED 2 #define STATUS_LED_ENABLE 1 +// 默认设备名称 #define DEVICE_NAME "WhiteTiger" +// EEPROM 大小 #define EEPROM_SIZE 1024 +// 超声波传感器引脚 #define HC_SR04_TRIG 23 #define HC_SR04_ECHO 22 + // TB6612 #1 控制 A B 电机 // A 电机 左前轮 #define MOTOR_A_PWMA 21 // 电机 A PWM