turn on I2C power after reset

This commit is contained in:
Dan Halbert 2021-12-24 11:45:07 -05:00
parent 41db3f6fb6
commit cf349af35e
1 changed files with 6 additions and 0 deletions

View File

@ -27,11 +27,17 @@
#include "supervisor/board.h"
#include "mpconfigboard.h"
#include "shared-bindings/microcontroller/Pin.h"
#include "components/driver/include/driver/gpio.h"
void board_init(void) {
// USB
common_hal_never_reset_pin(&pin_GPIO19);
common_hal_never_reset_pin(&pin_GPIO20);
// Turn on I2C
common_hal_never_reset_pin(&pin_GPIO7);
gpio_set_direction(7, GPIO_MODE_DEF_OUTPUT);
gpio_set_level(7, false);
}
bool board_requests_safe_mode(void) {