Removed WProgram.h reference

Sure nobody still uses <Arduino 0022?
This commit is contained in:
alastaira
2023-10-10 15:32:11 +01:00
parent 2775c70bc3
commit 467235aace
16 changed files with 16 additions and 92 deletions

View File

@@ -13,11 +13,7 @@ You should have received a copy of the GNU Affero General Public License along w
#ifndef _ANIMATIONS_h #ifndef _ANIMATIONS_h
#define _ANIMATIONS_h #define _ANIMATIONS_h
#if defined(ARDUINO) && ARDUINO >= 100 #include <Arduino.h>
#include "arduino.h"
#else
#include "WProgram.h"
#endif
class IAnimation { class IAnimation {
public: public:

View File

@@ -13,11 +13,7 @@ You should have received a copy of the GNU Affero General Public License along w
#ifndef _ASYNCTIMER_h #ifndef _ASYNCTIMER_h
#define _ASYNCTIMER_h #define _ASYNCTIMER_h
#if defined(ARDUINO) && ARDUINO >= 100 #include <Arduino.h>
#include "arduino.h"
#else
#include "WProgram.h"
#endif
typedef void(*AsyncTimerCallback)(); typedef void(*AsyncTimerCallback)();

View File

@@ -13,12 +13,7 @@ You should have received a copy of the GNU Affero General Public License along w
#ifndef _BLINKASSISTANT_h #ifndef _BLINKASSISTANT_h
#define _BLINKASSISTANT_h #define _BLINKASSISTANT_h
#if defined(ARDUINO) && ARDUINO >= 100 #include <Arduino.h>
#include "arduino.h"
#else
#include "WProgram.h"
#endif
#include "Animations.h" #include "Animations.h"
#include "AsyncTimer.h" #include "AsyncTimer.h"

7
Eye.h
View File

@@ -13,12 +13,7 @@ You should have received a copy of the GNU Affero General Public License along w
#ifndef _EYE_h #ifndef _EYE_h
#define _EYE_h #define _EYE_h
#if defined(ARDUINO) && ARDUINO >= 100 #include <Arduino.h>
#include "arduino.h"
#else
#include "WProgram.h"
#endif
#include "Common.h" #include "Common.h"
#include "Animations.h" #include "Animations.h"
#include "EyeConfig.h" #include "EyeConfig.h"

View File

@@ -13,12 +13,7 @@ You should have received a copy of the GNU Affero General Public License along w
#ifndef _EYEBLINK_h #ifndef _EYEBLINK_h
#define _EYEBLINK_h #define _EYEBLINK_h
#if defined(ARDUINO) && ARDUINO >= 100 #include <Arduino.h>
#include "arduino.h"
#else
#include "WProgram.h"
#endif
#include "Animations.h" #include "Animations.h"
#include "EyeConfig.h" #include "EyeConfig.h"

View File

@@ -13,12 +13,7 @@ You should have received a copy of the GNU Affero General Public License along w
#ifndef _EYECONFIG_h #ifndef _EYECONFIG_h
#define _EYECONFIG_h #define _EYECONFIG_h
#if defined(ARDUINO) && ARDUINO >= 100 #include <Arduino.h>
#include "arduino.h"
#else
#include "WProgram.h"
#endif
struct EyeConfig struct EyeConfig
{ {
int16_t OffsetX; int16_t OffsetX;

View File

@@ -13,13 +13,9 @@ You should have received a copy of the GNU Affero General Public License along w
#ifndef _EYEDRAWER_h #ifndef _EYEDRAWER_h
#define _EYEDRAWER_h #define _EYEDRAWER_h
#include <Arduino.h>
#include "Common.h" #include "Common.h"
#include "EyeConfig.h" #include "EyeConfig.h"
#if defined(ARDUINO) && ARDUINO >= 100
#include "arduino.h"
#else
#include "WProgram.h"
#endif
enum CornerType {T_R, T_L, B_L, B_R}; enum CornerType {T_R, T_L, B_L, B_R};

View File

@@ -17,12 +17,7 @@ You should have received a copy of the GNU Affero General Public License along w
#ifndef _EYEPRESETS_h #ifndef _EYEPRESETS_h
#define _EYEPRESETS_h #define _EYEPRESETS_h
#if defined(ARDUINO) && ARDUINO >= 100 #include <Arduino.h>
#include "arduino.h"
#else
#include "WProgram.h"
#endif
#include "EyeConfig.h" #include "EyeConfig.h"
static const EyeConfig Preset_Normal = { static const EyeConfig Preset_Normal = {

View File

@@ -13,12 +13,7 @@ You should have received a copy of the GNU Affero General Public License along w
#ifndef _EYETRANSFORMATION_h #ifndef _EYETRANSFORMATION_h
#define _EYETRANSFORMATION_h #define _EYETRANSFORMATION_h
#if defined(ARDUINO) && ARDUINO >= 100 #include <Arduino.h>
#include "arduino.h"
#else
#include "WProgram.h"
#endif
#include "Animations.h" #include "Animations.h"
#include "EyeConfig.h" #include "EyeConfig.h"

View File

@@ -13,12 +13,7 @@ You should have received a copy of the GNU Affero General Public License along w
#ifndef _EYETRANSITION_h #ifndef _EYETRANSITION_h
#define _EYETRANSITION_h #define _EYETRANSITION_h
#if defined(ARDUINO) && ARDUINO >= 100 #include <Arduino.h>
#include "arduino.h"
#else
#include "WProgram.h"
#endif
#include "Animations.h" #include "Animations.h"
#include "EyeConfig.h" #include "EyeConfig.h"

View File

@@ -13,12 +13,7 @@ You should have received a copy of the GNU Affero General Public License along w
#ifndef _EYEVARIATION_h #ifndef _EYEVARIATION_h
#define _EYEVARIATION_h #define _EYEVARIATION_h
#if defined(ARDUINO) && ARDUINO >= 100 #include <Arduino.h>
#include "arduino.h"
#else
#include "WProgram.h"
#endif
#include "Animations.h" #include "Animations.h"
#include "EyeConfig.h" #include "EyeConfig.h"

8
Face.h
View File

@@ -13,13 +13,7 @@ You should have received a copy of the GNU Affero General Public License along w
#ifndef _FACE_h #ifndef _FACE_h
#define _FACE_h #define _FACE_h
#include "config.h" #include <Arduino.h>
#if defined(ARDUINO) && ARDUINO >= 100
#include "arduino.h"
#else
#include "WProgram.h"
#endif
#include "Common.h" #include "Common.h"
#include "Animations.h" #include "Animations.h"
#include "EyePresets.h" #include "EyePresets.h"

View File

@@ -13,12 +13,7 @@ You should have received a copy of the GNU Affero General Public License along w
#ifndef _FACEBEHAVIOR_h #ifndef _FACEBEHAVIOR_h
#define _FACEBEHAVIOR_h #define _FACEBEHAVIOR_h
#if defined(ARDUINO) && ARDUINO >= 100 #include <Arduino.h>
#include "arduino.h"
#else
#include "WProgram.h"
#endif
#include "FaceEmotions.hpp" #include "FaceEmotions.hpp"
#include "AsyncTimer.h" #include "AsyncTimer.h"

View File

@@ -13,11 +13,7 @@ You should have received a copy of the GNU Affero General Public License along w
#ifndef _FACEEMOTIONS_h #ifndef _FACEEMOTIONS_h
#define _FACEEMOTIONS_h #define _FACEEMOTIONS_h
#if defined(ARDUINO) && ARDUINO >= 100 #include <Arduino.h>
#include "arduino.h"
#else
#include "WProgram.h"
#endif
enum eEmotions { enum eEmotions {
Normal=0, Normal=0,

View File

@@ -13,11 +13,7 @@ You should have received a copy of the GNU Affero General Public License along w
#ifndef _FACEEXPRESSION_h #ifndef _FACEEXPRESSION_h
#define _FACEEXPRESSION_h #define _FACEEXPRESSION_h
#if defined(ARDUINO) && ARDUINO >= 100 #include <Arduino.h>
#include "arduino.h"
#else
#include "WProgram.h"
#endif
class Face; class Face;

View File

@@ -13,12 +13,7 @@ You should have received a copy of the GNU Affero General Public License along w
#ifndef _LOOKASSISTANT_h #ifndef _LOOKASSISTANT_h
#define _LOOKASSISTANT_h #define _LOOKASSISTANT_h
#if defined(ARDUINO) && ARDUINO >= 100 #include <Arduino.h>
#include "arduino.h"
#else
#include "WProgram.h"
#endif
#include "EyeTransformation.h" #include "EyeTransformation.h"
#include "AsyncTimer.h" #include "AsyncTimer.h"