Read board sensors (temperature, humidity, pressure, gyroscope, accelerometer, magnetometer) using ST BSP drivers. This example is superceded with the HelloWorld_ST_Sensors example.
Dependencies: BSP_B-L475E-IOT01
Information
This example is superceded with the HelloWorld_ST_Sensors example.
Import programHelloWorld_ST_Sensors
Simple application to test ST motion and environmental MEMS sensors. Supports NUCLEO+X-NUCLEO-IKS01A2 , STEVAL-STLKT01V1 (a.k.a. SensorTile) and B-L475E-IOT01A boards.
main.cpp@0:280450d2b3cc, 2017-01-31 (annotated)
- Committer:
- bcostm
- Date:
- Tue Jan 31 13:03:41 2017 +0100
- Revision:
- 0:280450d2b3cc
- Child:
- 5:2d1980c7ca2d
Add main.cpp file
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
bcostm | 0:280450d2b3cc | 1 | #include "mbed.h" |
bcostm | 0:280450d2b3cc | 2 | |
bcostm | 0:280450d2b3cc | 3 | DigitalOut led1(LED1); |
bcostm | 0:280450d2b3cc | 4 | |
bcostm | 0:280450d2b3cc | 5 | int main() |
bcostm | 0:280450d2b3cc | 6 | { |
bcostm | 0:280450d2b3cc | 7 | while(1) { |
bcostm | 0:280450d2b3cc | 8 | led1 = !led1; |
bcostm | 0:280450d2b3cc | 9 | wait(1); |
bcostm | 0:280450d2b3cc | 10 | } |
bcostm | 0:280450d2b3cc | 11 | } |