- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHumidityController.h
More file actions
Latest commit
24 lines (21 loc) · 537 Bytes
/
Copy pathHumidityController.h
File metadata and controls
24 lines (21 loc) · 537 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/*
HumidtyController.h - Library for controlling fan speed and direction based on temperature and humidity
Created by Joel Day 2017
*/
#ifndef HumidityController_h
#defineHumidityController_h
#include"Arduino.h"
classHumidityController
{
public:
HumidityController(int sensorPin, int motorEnablePin, int motorIn1Pin, int motorIn2Pin);
voiddot();
voiddash();
voidsetMotor(int speed, bool reverse);
private:
int _sensorPin;
int _motorEnablePin;
int _motorIn1Pin;
int _motorIn2Pin;
};
#endif