forked from bsaxen/servuino
-
Notifications
You must be signed in to change notification settings - Fork 0
/
code.h
52 lines (47 loc) · 1.98 KB
/
code.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
/* Servuino is a Arduino Simulator Engine
Copyright (C) 2012 Benny Saxen
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#define F_PINMODE 1
#define F_DIGITALWRITE 2
#define F_DIGITALREAD 3
#define F_ANALOGWRITE 4
#define F_ANALOGREAD 5
#define F_ANALOGREFERENCE 6
#define F_TONE_int_int 7
#define F_TONE_int_int_long 8
#define F_NOTONE 9
#define F_SHIFTOUT 10
#define F_SHIFTIN 11
#define F_PULSEIN_int_int 12
#define F_PULSEIN_int_int_long 13
#define F_DELAY 14
#define F_DELAYMICROSECONDS 15
#define F_ATTACHINTERRUPT 16
#define F_DETACHINTERRUPT 17
#define F_INTERRUPTS 18
#define F_NOINTERRUPTS 19
#define F_SERIAL_BEGIN 20
#define F_SERIAL_END 22
#define F_SERIAL_AVAILABLE 23
#define F_SERIAL_READ 24
#define F_SERIAL_PEEK 25
#define F_SERIAL_FLUSH 26
#define F_SERIAL_PRINT_int 27
#define F_SERIAL_PRINT_int_int 28
#define F_SERIAL_PRINT_char 29
#define F_SERIAL_PRINTLN_int 30
#define F_SERIAL_PRINTLN_char 31
#define F_SERIAL_PRINTLN_String 32
#define F_SERIAL_WRITE 33
#define F_SERIAL_PRINTLN_void 34
#define F_LOOP 99