forked from OpenFPGAduino/Arduinojs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsimulation.h
More file actions
50 lines (41 loc) · 836 Bytes
/
simulation.h
File metadata and controls
50 lines (41 loc) · 836 Bytes
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
//Functionality: Initial the broad
int init(void)
{
return 1;
}
//Functionality: Control the led
//Argument:
//id: The id of led can be 0-3
//r: The red color of led
//g: The greem color of led
//b: The blue color of led
void led(int id, char r, char g, char b)
{
}
//Functionality: Control the IO port a
//Argument:
//id: use 0-26
//value: Can be 1 or 0
void ioa(int id, int value)
{
}
//Functionality: Control the IO port b
//Argument:
//id: use 0-26
//value: Can be 1 or 0
void iob(int id, int value)
{
}
//Functionality: print the string to the console
//Argument:
//format:output format string
int print(const char* format, ...)
{
return 1;
}
//Functionality: Sleep for seconds
//Argument:
//seconds The seconds for sleeping
//Functionality: Sleep for micro seconds
//Argument:
//usecods: The micro seconds for sleeping