added usb serial info
This commit is contained in:
parent
21d1a190a9
commit
9d18a57584
2 changed files with 20 additions and 2 deletions
14
firmware/MotionControllerRP/include/usb_strings.h
Normal file
14
firmware/MotionControllerRP/include/usb_strings.h
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
#pragma once
|
||||
// Override board-level USB descriptor strings.
|
||||
// This file is force-included via build_flags so it runs after all -D
|
||||
// command-line defines (including the board's default "Pico 2"), giving
|
||||
// these definitions the final say.
|
||||
#ifdef USB_PRODUCT
|
||||
#undef USB_PRODUCT
|
||||
#endif
|
||||
#define USB_PRODUCT "Micro-Manipulator"
|
||||
|
||||
#ifdef USB_MANUFACTURER
|
||||
#undef USB_MANUFACTURER
|
||||
#endif
|
||||
#define USB_MANUFACTURER ""
|
||||
|
|
@ -13,7 +13,7 @@
|
|||
|
||||
; ON LINUX UDEV RULES NEED TO BE INSTALLED:
|
||||
; sudo curl -fsSL https://raw.githubusercontent.com/platformio/platformio-core/develop/platformio/assets/system/99-platformio-udev.rules -o /etc/udev/rules.d/99-platformio-udev.rules
|
||||
; sudo service udev restart
|
||||
; sudo systemctl restart systemd-udevd
|
||||
; replug device, then upload should work
|
||||
|
||||
; Also potentially uninstall official plattform with:
|
||||
|
|
@ -28,6 +28,10 @@ board = rpipico2 # use this for RP2530
|
|||
board_build.filesystem_size = 0.5m
|
||||
|
||||
framework = arduino
|
||||
build_flags =
|
||||
-include include/usb_strings.h
|
||||
|
||||
lib_deps =
|
||||
littlefs
|
||||
mryslab/NeoPixelConnect@^1.4.0
|
||||
mryslab/NeoPixelConnect@^1.4.0
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue