Turn on I2C power for each VM, instead of just after hard reset

This commit is contained in:
Dan Halbert 2021-12-24 16:27:17 -05:00
parent 889b25d792
commit cf70a9ca61

View File

@ -33,11 +33,6 @@ 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) {
@ -45,7 +40,9 @@ bool board_requests_safe_mode(void) {
}
void reset_board(void) {
// Turn on I2C power by default.
gpio_set_direction(7, GPIO_MODE_DEF_OUTPUT);
gpio_set_level(7, false);
}
void board_deinit(void) {