Very Slow to 4MHz, fix linter error
This commit is contained in:
parent
b78b292ff8
commit
179796b80f
|
@ -1,7 +1,6 @@
|
||||||
import gc
|
import gc
|
||||||
import time
|
import time
|
||||||
import math
|
import math
|
||||||
import machine
|
|
||||||
import badger2040
|
import badger2040
|
||||||
from badger2040 import WIDTH
|
from badger2040 import WIDTH
|
||||||
import launchericons
|
import launchericons
|
||||||
|
|
|
@ -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:
|
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_SLOW` = `1` _12 MHz if on battery, 48 MHz if connected to USB_
|
||||||
* `SYSTEM_NORMAL` = `2` _48 MHz_
|
* `SYSTEM_NORMAL` = `2` _48 MHz_
|
||||||
* `SYSTEM_FAST` = `3` _133 MHz_
|
* `SYSTEM_FAST` = `3` _133 MHz_
|
||||||
|
|
|
@ -551,8 +551,8 @@ mp_obj_t Badger2040_system_speed(mp_obj_t speed) {
|
||||||
sys_freq = 12 * MHZ;
|
sys_freq = 12 * MHZ;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 0: // VERY_SLOW: 3 MHZ, 1.0V
|
case 0: // VERY_SLOW: 4 MHZ, 1.0V
|
||||||
sys_freq = 3 * MHZ;
|
sys_freq = 4 * MHZ;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue