Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
文件
Clone or Download
config.py 609 Bytes
Copy Edit Raw Blame History
Walkline authored 2022-12-28 09:10 . 修改版权声明内容
"""
The MIT License (MIT)
Copyright © 2022 Walkline Wang (https://walkline.wang)
Gitee: https://gitee.com/walkline/espnow-remote-controller
"""
import esp
esp.osdebug(None) # 注释此行可显示详细调试信息
class Config(object):
class PINS(object):
BAT_ADC_EN = 21
class ADC(object):
X1 = 0
Y1 = 1
X2 = 2
Y2 = 3
JOYSTICK_PINS = (X1, Y1, X2, Y2)
JOYSTICK_1_PINS = (X1, Y1)
JOYSTICK_2_PINS = (X2, Y2)
BAT = 4
class KEYS(object):
KEY_1 = 20
KEY_2 = 5
KEY_BOOT = 9
class OLED(object):
SCLK = 6
SDIN = 7
RES = 8
DC = 10
# CS bind to ground
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化