-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
simuino.h
60 lines (60 loc) · 1.8 KB
/
simuino.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
52
53
54
55
56
57
58
59
60
void anyErrors();
int countRowsInFile(char *fileName);
int analyzeEvent(char *Event);
int readEvent(char *ev, int step);
int readComment(int step);
void mLog0(const char *p);
void wLog0(const char *p);
void mLog1(const char *p, int value1);
void wLog1(const char *p, int value1);
void wLog2(const char *p, int value1, int value2);
void debug(char *msg);
int runMode(int stop);
int runStep(int dir);
void cmdLoop();
void iDelay(int ms);
void show(WINDOW *win);
void putMsg(int line,const char *message);
void showError(const char *m, int value);
void saveSetting();
void resetFile(const char *filename);
void logFile(char *m);
void wLog(const char *p, int value1, int value2);
void unoInfo();
void wLogChar(const char *p, const char *value1, int value2);
void showSerial(const char *m, int newLine);
void getString(char *in, char *out);
void readSketchInfo();
void initSim();
void resetSim();
void unimplemented(const char *f);
void readConfig();
void runLoop();
void runAll();
void readSimulation();
void showScenario(char *fileName);
void readMsg(char *fileName);
void init();
int loadSketch(char sketch[]);
void pinMode(int pin, int mode);
void digitalWrite(int pin, int value);
void analogReference(char type[]);
void analogWrite(int pin, int value);
void tone(int pin, unsigned int freq);
void tone(int pin, unsigned int freq, unsigned long duration);
void noTone(int pin);
void shiftOut(int dataPin, int clockPin, int bitOrder, int value);
void delay(int ms);
void delayMicroseconds(int us);
void test_math();
void test_trigonometry();
void randomSeed(int seed);
void attachInterrupt(int interrupt, void(*func)(), int mode);
void detachInterrupt(int interrupt);
void interrupts();
void noInterrupts();
int readStatus();
void readSerial();
void readTime();
int goStep(int step);
char *replace_str(char *str, char orig[], char rep[]);