2023-03-22 15:28:54 +01:00
|
|
|
|
#include "stm32f10x.h"
|
2023-04-07 13:38:25 +02:00
|
|
|
|
<<<<<<< HEAD
|
2023-04-04 14:36:29 +02:00
|
|
|
|
#include "servo.h"
|
|
|
|
|
#include "motoreducteur.h"
|
2023-04-05 08:25:25 +02:00
|
|
|
|
#include "rtc.h"
|
2023-03-22 15:28:54 +01:00
|
|
|
|
|
|
|
|
|
int main (void)
|
|
|
|
|
{
|
2023-04-04 14:36:29 +02:00
|
|
|
|
MyServo_Init();
|
|
|
|
|
MyServo_ChangeAngle(179);
|
2023-04-05 08:25:25 +02:00
|
|
|
|
//MyMotor_Init();
|
2023-04-04 14:36:29 +02:00
|
|
|
|
|
2023-04-05 08:25:25 +02:00
|
|
|
|
//MyMotor_ChangeSpeed(2000);
|
|
|
|
|
//MyMotor_ChangeDirection(HORAIRE);
|
2023-04-04 14:36:29 +02:00
|
|
|
|
|
2023-04-05 08:25:25 +02:00
|
|
|
|
MyRTC_Init();
|
|
|
|
|
MyRTC_GetTime();
|
2023-04-04 14:36:29 +02:00
|
|
|
|
|
|
|
|
|
while(1){};
|
|
|
|
|
}
|
2023-04-07 13:38:25 +02:00
|
|
|
|
=======
|
2023-04-07 13:21:27 +02:00
|
|
|
|
#include "MyI2C.h"
|
|
|
|
|
#include "MySPI.h"
|
|
|
|
|
#include "remote.h"
|
|
|
|
|
#include "gpio.h"
|
2023-03-22 15:28:54 +01:00
|
|
|
|
|
|
|
|
|
int main (void)
|
|
|
|
|
{
|
2023-04-04 14:34:09 +02:00
|
|
|
|
MyGPIO_Struct_TypeDef led = {GPIOA,5,Out_PullUp}; //led
|
|
|
|
|
MyGPIO_Init(&led); //test des leds pour ignorer les contraintes li<6C>es aux diff<66>rents ports
|
2023-04-02 22:53:49 +02:00
|
|
|
|
|
2023-04-04 14:34:09 +02:00
|
|
|
|
initRemote();
|
2023-04-04 15:26:37 +02:00
|
|
|
|
testRemote();
|
2023-04-02 22:53:49 +02:00
|
|
|
|
|
|
|
|
|
while(1){
|
|
|
|
|
};
|
2023-03-22 15:28:54 +01:00
|
|
|
|
}
|
2023-04-07 13:38:25 +02:00
|
|
|
|
>>>>>>> origin/yohan
|