7seg_numbers_arduino/segNums.h

29 lines
436 B
C
Raw Normal View History

2020-03-13 12:30:24 +00:00
#ifndef segNums_h
#define segNums_h
2020-03-13 12:06:55 +00:00
2020-03-13 12:30:24 +00:00
#include "Arduino.h"
2020-03-13 12:06:55 +00:00
class SegDisp
{
public:
SegDisp(int pins[8]);
void zero(int state);
void one(int state);
void two(int state);
void three(int state);
void four(int state);
void five(int state);
void six(int state);
void seven(int state);
void eight(int state);
void nine(int state);
2020-03-13 12:13:27 +00:00
void dot(int state);
2020-03-13 16:25:31 +00:00
void on();
void off();
2020-03-13 12:06:55 +00:00
private:
int _pins[8];
};
#endif