acassis opened a new pull request, #4031:
URL: https://github.com/apache/nuttx-apps/pull/4031
## Summary
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.
## Impact
Users will be able to use this app as reference to implement their own low
power sensor configuration
## Testing
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
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]