You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 2636fd7
Browse filesBrowse the repository at this point in the historyBrowse files
examples/npzero: add the nPZero G1S power-saving example
Add an example of the nPZero G1S driver for the sensors of the nPZero
G1S Development Kit, like the example of the Nanopower driver API:
* LIS2DW12 accelerometer on peripheral 3 (SPI), read every 5 s, wakes
the host up above about 61 mg on X.
* AS6212 temperature sensor on peripheral 4 (I2C), read every 30 s,
wakes the host up above 25 C or below 10 C.
* Global time-out of 300 s.
At each boot of the host it shows the ID and the wake-up reason (with
the values of the peripherals and of the ADC that triggered it), sends
the configuration and, after CONFIG_EXAMPLES_NPZERO_IDLE_DELAY ms,
enters Idle state, which switches the host off. "npzero -s" shows the
status only. Both sensors are kept powered while the host is on
(pswint): an unpowered AS6212 board blocks the shared I2C bus.
Tested on the DevKit with npzero-g1s-dk:nsh:
nsh> npzero -s
nPZero G1S ID: 0x60
STA1: 0x01 STA2: 0x00
nsh> npzero
nPZero G1S ID: 0x60
STA1: 0x01 STA2: 0x00
Configured, Idle state in 1000 ms
Assisted-by: Claude:claude-opus-5-5
0 commit comments