-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Description
After reading about the ability to turn off QSPI during sleep for the nRF52840 in 6.0.0 alpha 3 I tried emulating what @xiongyihui did in issue #3244 on my itsybitsy BLE (also nRF52840). However after building CircuitPython with the CIRCUITPY_ENABLE_MPY_NATIVE=1 flag to be able to use the @micropython.asm_thumb decorator and adding a few lines to xiongyihui's code to disable the DotStar LED the current drawn from battery (no USB connected) is still identical to what it was when using 6.0.0 alpha 2 (about 2.5 mA). The quiescent current of the DotStar is around 1 mA and I will physically remove it once the project is nearly finished.
I am not sure how I could tell if QSPI is actually off other than looking at the current and since xiongyihui measured far less (on a different board however) I assume I am either doing something wrong or the difference in hardware is to blame (maybe turning off the DotStar in this way doesn't allow QSPI to turn off?).
this is all I added to xiongyihui's code:
import board
import adafruit_dotstar as dotstar
dot = dotstar.DotStar(board.APA102_SCK, board.APA102_MOSI, 1)
dot[0] = (0, 0, 0)