2023-03-22 15:28:54 +01:00
|
|
|
#include "stm32f10x.h"
|
2023-04-04 15:17:30 +02:00
|
|
|
#include "MyI2C.h"
|
|
|
|
#include "MySPI.h"
|
|
|
|
#include "accelerometer.h"
|
2023-03-22 15:28:54 +01:00
|
|
|
|
2023-04-07 14:26:51 +02:00
|
|
|
float GX, GY, GZ;
|
2023-03-22 15:28:54 +01:00
|
|
|
int main (void)
|
|
|
|
{
|
2023-04-07 14:26:51 +02:00
|
|
|
Init_accelerometre();
|
2023-04-04 15:17:30 +02:00
|
|
|
while(1){
|
2023-04-07 14:26:51 +02:00
|
|
|
Lecture_accelerometre(&GX,&GY,&GZ);
|
|
|
|
};
|
2023-03-22 15:28:54 +01:00
|
|
|
}
|