kopia lustrzana https://github.com/pimoroni/pimoroni-pico
Experimental: Attempt to build USB firmware.
rodzic
dd4126a3a2
commit
22d055055b
|
@ -23,6 +23,11 @@ function micropython_clone {
|
|||
git submodule update --init lib/micropython-lib
|
||||
git submodule update --init lib/tinyusb
|
||||
git submodule update --init lib/btstack
|
||||
cd lib/micropython-lib
|
||||
git remote add usb https://github.com/projectgus/micropython-lib
|
||||
git fetch usb feature/usbd_python
|
||||
git checkout feature/usbd_python
|
||||
cd ../../
|
||||
cd ../
|
||||
}
|
||||
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Board and hardware specific configuration
|
||||
#define MICROPY_HW_BOARD_NAME "Raspberry Pi Pico"
|
||||
#define MICROPY_HW_FLASH_STORAGE_BYTES (1408 * 1024)
|
||||
#define MICROPY_HW_FLASH_STORAGE_BYTES (1408 * 1024)
|
||||
#define MICROPY_HW_ENABLE_USB_RUNTIME_DEVICE 1
|
|
@ -2,4 +2,11 @@ freeze("../modules_py", "gfx_pack.py")
|
|||
freeze("../modules_py", "interstate75.py")
|
||||
|
||||
freeze("../modules_py", "pimoroni.py")
|
||||
freeze("../modules_py", "boot.py")
|
||||
freeze("../modules_py", "boot.py")
|
||||
|
||||
require("usb-device")
|
||||
require("usb-device-hid")
|
||||
require("usb-device-cdc")
|
||||
# require("usb-device-keyboard")
|
||||
# require("usb-device-mouse")
|
||||
# require("usb-device-midi")
|
Ładowanie…
Reference in New Issue