Turn on I2C power for each VM, instead of just after hard reset
This commit is contained in:
parent
889b25d792
commit
cf70a9ca61
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user