-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathArdStreamOut.h
41 lines (31 loc) · 1013 Bytes
/
ArdStreamOut.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#include "Stk.h"
#ifdef __STREAMS__
#ifndef ARDSTREAMOUTCOMMON_H
#define ARDSTREAMOUTCOMMON_H
#include "ArdConfig.h"
#include "WvOut.h"
#include "ArdCommonOut.h"
#include "Print.h"
namespace stk {
/***************************************************/
/*! \class stk::ArdStreamOut
\brief Abstract class for Output to Arduiono HardwareArdStream
We are wrting the data to the indicated Ardino HardwareArdStream device.
If the channel is >1 we repeat the output multiple times until all
channels have been filled (with the same output value)
by Phil Schatzmann
*/
/***************************************************/
class ArdStreamOut: public ArdCommonOut {
public:
ArdStreamOut(Print &stream, unsigned channels=1);
ArdStreamOut(Print *stream, unsigned channels=1);
protected:
Print* pStream;
int byteCount;
virtual void write(StkFloat value) override;
virtual void write(int16_t value) override;
};
}; //stk
#endif
#endif