Actually enable 3v3 at startup

This commit is contained in:
Mike Bell 2022-03-24 00:24:26 +00:00
parent a0baae33a6
commit c41714c4c9
1 changed files with 1 additions and 0 deletions

View File

@ -9,6 +9,7 @@ namespace {
Badger2040_WakeUpInit()
: state(gpio_get_all())
{
gpio_set_function(pimoroni::Badger2040::ENABLE_3V3, GPIO_FUNC_SIO);
gpio_set_dir(pimoroni::Badger2040::ENABLE_3V3, GPIO_OUT);
gpio_put(pimoroni::Badger2040::ENABLE_3V3, 1);
}