Closed probonopd closed 10 hours ago
Download the artifacts for this pull request:
@blixabloxa would appreciate if you could test to see whether it works for you. Thanks!
Hi probonopd,
I have a testing update.
I have tried to get this to work but I am not having success.
I have a RPi 3 A+ and have loaded the test build above, also adding the USBGadget and the USBGadgetPIN lines to my minidexed.ini file (I left it at the default GPIO 26)
Connecting GPIO 26 (physical pin 37) to Ground (physical pin 30) makes no difference at all. Changing the USBGadget setting from 0 to 1 works as expected.
Any advice on how to proceed, or do you want me to try something else?
Thanks,
Enzo
Just had a look at the code. Not sure if it is an error, but the line to set USB Gadget mode to "0" is duplicated at line 40 and 49 - see image attached. Is this correct, or should line 49 be removed?
Thanks for investigating and you are spot on @blixabloxa. New build for testing should be available soon.
New build for testing: MiniDexed_2024-07-02-af6dd22
Hi probonopd,
Just tested the new test build (MiniDexed_2024-07-02-af6dd22) and it works.
Test 1 - USBGadget=0 and USBGadgetPin not connected to GND - Pass : USB Gadget mode not enabled. Test 2 - USBGadget=0 and USBGadgetPin connected to GND - Pass: USB Gadget mode enabled. Test 3 - USBGadget=1 and USBGadgetPin not connected to GND - Pass : USB Gadget mode enabled. Test 4 - USBGadget=1 and USBGadgetPin connected to GND - Pass: USB Gadget mode enabled.
Thanks for this. I will find it useful for when I build the hardware to go with it.
Let me know if you want me to test more scenarios related to this.
Regards, Enzo
Thanks for testing and for confirming @blixabloxa.
Allow for
as per https://github.com/probonopd/MiniDexed/discussions/669:
If either
USBGadget
is set to1
orUSBGadgetPin
is pulled down, then we enable gadget mode.