Projet
This commit is contained in:
parent
9646d260cb
commit
046c5e7599
14 changed files with 0 additions and 180 deletions
|
|
@ -1,32 +0,0 @@
|
|||
/*********************************************************************
|
||||
* @file Apllication.cpp
|
||||
* @author <mettre l'adresse mail ou nom prenom>
|
||||
* @brief Fichier source de l'application
|
||||
*********************************************************************/
|
||||
#include "Application.h"
|
||||
|
||||
|
||||
Application::Application()
|
||||
{
|
||||
// Code
|
||||
;
|
||||
}
|
||||
|
||||
Application::~Application()
|
||||
{
|
||||
// Code
|
||||
;
|
||||
}
|
||||
|
||||
void Application::init(void)
|
||||
{
|
||||
// Code
|
||||
;
|
||||
}
|
||||
|
||||
|
||||
void Application::run(void)
|
||||
{
|
||||
// Code
|
||||
;
|
||||
}
|
||||
|
|
@ -1,37 +0,0 @@
|
|||
/*********************************************************************
|
||||
* @file Apllication.h
|
||||
* @author <mettre l'adresse mail ou nom prenom>
|
||||
* @brief Fichier header de l'application
|
||||
*********************************************************************/
|
||||
#ifndef APPLICATION_H_
|
||||
#define APPLICATION_H_
|
||||
|
||||
/**
|
||||
* @class Application
|
||||
* @brief Classe Application
|
||||
*/
|
||||
class Application
|
||||
{
|
||||
public :
|
||||
/**
|
||||
* @fn Application();
|
||||
* @brief Constructeur par defaut
|
||||
*/
|
||||
Application();
|
||||
/**
|
||||
* @fn Application();
|
||||
* @brief Destructeur
|
||||
*/
|
||||
~Application();
|
||||
/**
|
||||
* @fn void init(void)
|
||||
* @brief Fonction d'initialisation de l'application
|
||||
*/
|
||||
void init(void);
|
||||
/**
|
||||
* @fn void run(void)
|
||||
* @brief Fonction de lancement de l'application
|
||||
*/
|
||||
void run(void);
|
||||
};
|
||||
#endif
|
||||
|
|
@ -1,15 +0,0 @@
|
|||
#include "Application.h"
|
||||
|
||||
Application myApplication;
|
||||
|
||||
void setup()
|
||||
{
|
||||
// put your setup code here, to run once:
|
||||
myApplication.init();
|
||||
}
|
||||
|
||||
void loop()
|
||||
{
|
||||
// put your main code here, to run repeatedly:
|
||||
myApplication.run();
|
||||
}
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
#include "actionneur.h"
|
||||
|
||||
|
|
@ -1,11 +0,0 @@
|
|||
#ifndef actionneur_H
|
||||
#define actionneur_H
|
||||
#include "peripherique.h"
|
||||
class actionneur : public periph {
|
||||
private:
|
||||
|
||||
public:
|
||||
actionneur():periph(){};
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
#include "bouton.h"
|
||||
|
||||
bouton:: bouton() :capteur(),etat(0){}
|
||||
|
|
@ -1,12 +0,0 @@
|
|||
#ifndef bouton_H
|
||||
#define bouton_H
|
||||
#include "capteur.h"
|
||||
class bouton : public capteur {
|
||||
private:
|
||||
bool etat;
|
||||
public:
|
||||
bouton();
|
||||
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
@ -1,8 +0,0 @@
|
|||
#include "capteur.h"
|
||||
|
||||
capteur:: capteur() :periph(),pin(0){}
|
||||
|
||||
void init(){
|
||||
pinMode(pin, INPUT);
|
||||
|
||||
}
|
||||
|
|
@ -1,12 +0,0 @@
|
|||
#ifndef capteur_H
|
||||
#define capteur_H
|
||||
#include "peripherique.h"
|
||||
class capteur : public periph {
|
||||
private:
|
||||
char* pin;
|
||||
public:
|
||||
capteur();
|
||||
void set(void);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
@ -1,12 +0,0 @@
|
|||
#ifndef ecran_H
|
||||
#define ecran_H
|
||||
#include "actionneur.h"
|
||||
#include "rgb_lcd.h"
|
||||
class ecran : public actionneur, public rgb_lcd {
|
||||
private:
|
||||
|
||||
public:
|
||||
ecran():actionneur(),rgb_lcd(){};
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
#include "led.h"
|
||||
|
||||
|
||||
led:: led() :actionneur(),pin(0),etat(0){}
|
||||
|
||||
void init(){
|
||||
pinMode(pin, OUTPUT);
|
||||
|
||||
}
|
||||
|
|
@ -1,13 +0,0 @@
|
|||
#ifndef led_H
|
||||
#define led_H
|
||||
#include "actionneur.h"
|
||||
|
||||
class led : public actionneur{
|
||||
private:
|
||||
char* pin;
|
||||
bool etat;
|
||||
public:
|
||||
led();
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
#include "peripherique.h"
|
||||
|
||||
periph::periph() : id(0) {}
|
||||
|
|
@ -1,11 +0,0 @@
|
|||
#ifndef periph_H
|
||||
#define periph_H
|
||||
|
||||
class periph {
|
||||
private:
|
||||
char id;
|
||||
public:
|
||||
periph();
|
||||
};
|
||||
|
||||
#endif
|
||||
Loading…
Reference in a new issue