I use latest wizio-pico, and, patch the tinyusb_gamepad commit(Updated to support latest TinyUSB version #79), then, the init adc is not work.
I init adc in Gamepad::setup method, like:
adc_init();
adc_gpio_init(26);
adc_gpio_init(27);
adc_gpio_init(28);
and, in Gamepad::read method: update joystick like:
adc_select_input(0);
state.lx = (adc_read() >> 4) << 8;
adc_select_input(1);
state.ly = (adc_read() >> 4) << 8;
it worked before, but, now it not work, I am sure it not my hardware problem, and, not the code problem, it must be some latest lib update break something