Skip to content

settings.toml-settable usb endpoint defaults on boot#8727

Closed
bill88t wants to merge 14 commits into
adafruit:mainfrom
bill88t:settings-init
Closed

settings.toml-settable usb endpoint defaults on boot#8727
bill88t wants to merge 14 commits into
adafruit:mainfrom
bill88t:settings-init

Conversation

@bill88t
Copy link
Copy Markdown

@bill88t bill88t commented Dec 15, 2023

This implements what I wanted on #8693.

Closes #8693.

I tried to implement a bool getter for getenv, but it was ugly and broken.
So for now just =0 and =1.

Mandatory checklist:

  • USB_MSC, CIRCUITPY_USB_MSC_DEFAULT
  • USB_HID, CIRCUITPY_USB_HID_DEFAULT
  • USB_MIDI, CIRCUITPY_USB_MIDI_DEFAULT
  • USB_CDC, CIRCUITPY_USB_CDC_CONSOLE_DEFAULT & CIRCUITPY_USB_CDC_DATA_DEFAULT

As a reminder, this api does not affect current applications that set these during boot.py.
These toggles only affect the default state that they start at, during init.

@bill88t bill88t changed the title settings.toml-settable usb endpoints on boot settings.toml-settable usb endpoint defaults on boot Dec 15, 2023
@bill88t bill88t marked this pull request as ready for review December 15, 2023 20:59
@tannewt tannewt requested a review from dhalbert December 15, 2023 21:23
@bill88t
Copy link
Copy Markdown
Author

bill88t commented Dec 18, 2023

Closing, as discussed in #8693.

@bill88t bill88t closed this Dec 18, 2023
@bill88t bill88t deleted the settings-init branch December 18, 2023 02:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Have usb drive, usb_hid and the rest of the things that can be enabled/disabled during boot be configurable from settings.toml

1 participant