1 Star 0 Fork 14

annocx / python-keyboard

forked from makerdiary / PYKB 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
m60.md 1.01 KB
一键复制 编辑 原始数据 按行查看 历史
Yihui Xiong 提交于 2020-07-10 16:29 . add changes for m60

M60 Keyboard

Setup Python

M60 has installed Python by default. If not, follow the steps to install Python.

  1. Hold the ON/OFF button at the back and then connect the keyboard a computer. It will run its bootloader and act as a USB drive named M60Keyboard.

  2. Copy circuitpython-5.3.0-for-m60-keyboard.uf2 to the drive. You will get a new USB drive named CIRCUITPY if anything is OK.

  3. Copy keyboard.py and action_code.py to the the CIRCUITPY drive, and download two CircuitPython libraries - adafruit-ble & adafruit-hid and put them into the lib directory of the drive.

    CIRCUITPY
    ├───action_code.py
    ├───code.py
    ├───keyboard.py
    └───lib
        ├───adafruit_ble
        └───adafruit_hid
  4. Change code.py to:

    # code.py
    
    from keyboard import main
    
    main()
Python
1
https://gitee.com/annocx/python-keyboard.git
git@gitee.com:annocx/python-keyboard.git
annocx
python-keyboard
python-keyboard
master

搜索帮助