Example using the LSM303 MEMS compass onboard the STM32F3-Discovery board.
Dependencies: LSM303DLHC mbed
Diff: main.cpp
- Revision:
- 3:9b71b3bf2501
- Parent:
- 2:781079d0c247
- Child:
- 4:5be48963926c
--- a/main.cpp Sat Mar 21 16:37:51 2015 +0000 +++ b/main.cpp Sun Mar 22 12:38:50 2015 +0000 @@ -1,8 +1,8 @@ /********************************************************************************** * @file main.cpp -* @author Name -* @version V0.1 -* @date 09-March-2015 +* @author Petr Dousa +* @version V1.00 +* @date 22-March-2015 * @brief LEDs blinking with LSM303. * With push button pressed, LEDs are opossite. ***********************************************************************************/ @@ -30,6 +30,8 @@ //#define RCC_AHBENR_GPIOEEN ((uint32_t)0x00200000) //#define RCC_AHBPeriph_GPIOE RCC_AHBENR_GPIOEEN +/* Function prototypes -----------------------------------------------------------*/ + /* Variables ---------------------------------------------------------------------*/ bool oppos = false;