27 lines
409 B
C++
27 lines
409 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);
|
|
|
|
private:
|
|
int _pins[8];
|
|
};
|
|
|
|
#endif
|