32 lines
520 B
C
32 lines
520 B
C
|
/*
|
||
|
PSCon.h
|
||
|
(c)2011 kou029w - MIT License [http://kou029w.appspot.com/mit-license.txt]
|
||
|
*/
|
||
|
|
||
|
#ifndef PSCon_h
|
||
|
#define PSCon_h
|
||
|
|
||
|
#if defined(ARDUINO) && ARDUINO >= 100
|
||
|
#include <Arduino.h>
|
||
|
#else
|
||
|
#include <WProgram.h>
|
||
|
#endif
|
||
|
|
||
|
class PSCon{
|
||
|
public:
|
||
|
void clkPin(byte clkPin);
|
||
|
void selPin(byte selPin);
|
||
|
void cmdPin(byte cmdPin);
|
||
|
void datPin(byte datPin);
|
||
|
byte data[8];
|
||
|
void get(byte requestData[8]);
|
||
|
private:
|
||
|
byte _getByte(byte requestData);
|
||
|
byte _clkPin;
|
||
|
byte _selPin;
|
||
|
byte _cmdPin;
|
||
|
byte _datPin;
|
||
|
};
|
||
|
|
||
|
#endif
|