text: #ifndef Fan_h
  #define Fan_h
  
  #include "Arduino.h"
  #include "FanRule.h"
  
  const int MAX_NUM_FAN_RULES = 0;
  
  class Fan
  {
    private:
      boolean _isNull;
      int pin;
      int speed;
      int maxSpeed;
      int minSpeed;
      int startUpDelay;
  
      FanRule fanRules[MAX_NUM_FAN_RULES];
  
      // *****************************
      // **** PRIVATE
      // *****************************
      int sizeofRules();
      void setPWMSpeed(int value);
  
    public:
      Fan();
      Fan(int fanPin);
  
      // *****************************
      // **** PUBLIC
      // *****************************
      void listRules();
      void addRule(int start, int end, int speed);
      void setup();
      void setSpeedPercentage(int value);
      void run();
      void printInfo();
  
      // *****************************
      // **** GETTER && SETTER
      // *****************************
      boolean isNull();
      int getPin();
      void setStartUpDelay(int startUpDelay);
      int getStartUpDelay();
      void setMaxSpeed(int fullSpeed);
      int getMaxSpeed();
      void setMinSpeed(int minSpeed);
      int getMinSpeed();
  
  };
  
  #endif
  