7seg_numbers_arduino/segNums.h

29 lines
436 B
C++

#ifndef segNums_h
#define segNums_h
#include "Arduino.h"
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);
void dot(int state);
void on();
void off();
private:
int _pins[8];
};
#endif