1 Star 1 Fork 0

Walkline/MicroPython WS2812 Research

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
config.sample.py 631 Bytes
一键复制 编辑 原始数据 按行查看 历史
Walkline 提交于 4年前 . 调整颜色亮度数值
"""
Copyright © 2021 Walkline Wang (https://walkline.wang)
Gitee: https://gitee.com/walkline/micropython-ws2812-research
"""
class Config(object):
class WIFI(object):
SSID = ''
PASSWORD = ''
class PINS(object):
HSPI_MOSI = 13
VSPI_MOSI = 23
class KEYS(object):
KEY_1 = 22
KEY_2 = 21
KEY_3 = 5
KEY_4 = 4
KEY_LIST = (KEY_1, KEY_2, KEY_3, KEY_4)
KEY_MAP = {
KEY_1: 1,
KEY_2: 2,
KEY_3: 3,
KEY_4: 4
}
class Colors(object):
BLACK = (0, 0, 0)
WHITE = (128, 128, 128)
RED = (255, 0, 0)
BLUE = (0, 0, 255)
GREEN = (0, 255, 0)
GREEN_MEDIUM = (128, 128, 0)
GREEN_LOW = (0, 60, 60)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/walkline/micropython-ws2812-research.git
git@gitee.com:walkline/micropython-ws2812-research.git
walkline
micropython-ws2812-research
MicroPython WS2812 Research
master

搜索帮助