optimize: consts helper
This commit is contained in:
parent
5367c786c6
commit
eda05007cc
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue