38 lines
464 B
C++
38 lines
464 B
C++
#ifndef PROGRAM_H
|
|
#define PROGRAM_H
|
|
|
|
#include <Arduino.h>
|
|
#include <ESP8266WiFi.h>
|
|
|
|
#include "DiscordAPI.h"
|
|
#include "SwitchableEncodeur.h"
|
|
|
|
|
|
|
|
class Program {
|
|
public:
|
|
/**
|
|
* Program startup
|
|
*/
|
|
Program();
|
|
|
|
/**
|
|
* Program main loop
|
|
*/
|
|
void loop();
|
|
private:
|
|
/**
|
|
* Encoder object
|
|
*/
|
|
SwitchableEncodeur* encoder;
|
|
|
|
/**
|
|
* Old encoder position
|
|
*/
|
|
long oldPosition;
|
|
|
|
DiscordAPI* discord;
|
|
};
|
|
|
|
#endif
|