44 lines
623 B
C++
44 lines
623 B
C++
#ifndef PROGRAM_H
|
|
#define PROGRAM_H
|
|
|
|
#include <DHT.h>
|
|
#include <Arduino.h>
|
|
#include <Ultrasonic.h>
|
|
#include "API.h"
|
|
|
|
class Program{
|
|
public:
|
|
/**
|
|
* @brief Construct the maine Program object
|
|
*
|
|
*/
|
|
Program();
|
|
|
|
/**
|
|
* @brief main loop function
|
|
*
|
|
*/
|
|
void loop();
|
|
|
|
private:
|
|
/* data */
|
|
|
|
/**
|
|
* @brief capteur humi/temp
|
|
*
|
|
*/
|
|
DHT *dht;
|
|
|
|
/**
|
|
* @brief capteur ultra son pour le niveau de remplissage de la poubelle
|
|
*
|
|
*/
|
|
Ultrasonic *ultrasonic;
|
|
|
|
/**
|
|
* @brief Réference de l'API pour les calls
|
|
*
|
|
*/
|
|
API *api;
|
|
};
|
|
#endif |