Very Slow to 4MHz, fix linter error

pull/325/head
Mike Bell 2022-03-30 00:26:27 +01:00
rodzic b78b292ff8
commit 179796b80f
3 zmienionych plików z 3 dodań i 4 usunięć

Wyświetl plik

@ -1,7 +1,6 @@
import gc
import time
import math
import machine
import badger2040
from badger2040 import WIDTH
import launchericons

Wyświetl plik

@ -71,7 +71,7 @@ Badger 2040 features five buttons on its front, labelled A, B, C, ↑ (up), ↓
The system clock speed of the RP2040 can be controlled, allowing power to be saved if on battery, or faster computations to be performed. Use `badger2040.system_speed(speed)` where `speed` is one of the following constants:
* `SYSTEM_VERY_SLOW` = `0` _3 MHz if on battery, 48 MHz if connected to USB_
* `SYSTEM_VERY_SLOW` = `0` _4 MHz if on battery, 48 MHz if connected to USB_
* `SYSTEM_SLOW` = `1` _12 MHz if on battery, 48 MHz if connected to USB_
* `SYSTEM_NORMAL` = `2` _48 MHz_
* `SYSTEM_FAST` = `3` _133 MHz_

Wyświetl plik

@ -551,8 +551,8 @@ mp_obj_t Badger2040_system_speed(mp_obj_t speed) {
sys_freq = 12 * MHZ;
break;
case 0: // VERY_SLOW: 3 MHZ, 1.0V
sys_freq = 3 * MHZ;
case 0: // VERY_SLOW: 4 MHZ, 1.0V
sys_freq = 4 * MHZ;
break;
}