-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathADDAC_Empty.h
executable file
·51 lines (35 loc) · 967 Bytes
/
ADDAC_Empty.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
42
43
44
45
46
47
48
49
50
51
/*
* ADDAC_Empty
*
* Developer's blank page Class example
*
* in Arduino environment simply add at the very top:
#include <ADDAC_Empty.h> // This loads the Class when compiling
ADDAC_Empty Empty; // This Instantiates 1 Class with the name "Empty"
*
*
* then in BEHAVIOUR() add at a position of your choice:
unsigned int CV = Empty.update(random(0, 65535));
or if you want to write it straight out at channel 1 for ex.:
VCC.WriteChannel(1, Empty.update(random(0, 65535)) );
*
*
* or to simply get the current value back use:
unsigned int CV = Empty.CVstream;
*
*
*/
#ifndef ADDAC_Empty_h
#define ADDAC_Empty_h
#if defined(ARDUINO) && ARDUINO >= 100
#include "Arduino.h"
#else
#include <WProgram.h>
#endif
class ADDAC_Empty{
public:
ADDAC_Empty();
long update(float _val); // Function to be called from Arduino Environment
float CVstream; // Public Variables
};
#endif