added usb serial info

This commit is contained in:
0x23 2026-05-20 20:15:55 +02:00
parent 21d1a190a9
commit 9d18a57584
2 changed files with 20 additions and 2 deletions

View 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 ""

View file

@ -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