Librería para clientes de AlMarSimulator 1
Librería para E/S de simuladores genéricos (C/C++/Matlab/Python)
Loading...
Searching...
No Matches
CXXX-Client/C102-UserLibAlMarDuino/AlMarDuino.h
Go to the documentation of this file.
1#ifndef _INC_ALMARDUINO_H
2#define _INC_ALMARDUINO_H
3
37
56
58void setup();
59
61void loop();
62
69#define AlMarDuino_MAIN int main(int argc,const char* argv[ ]) { \
70 AlMarDuino::Internal::Setup(argc,argv); \
71 setup(); \
72 while (1) { \
73 loop(); \
74 } \
75 return 0; \
76}
77
78#include <stdint.h>
79
80
81namespace AlMarDuino {
84void delay(int time_ms);
85bool digitalRead(int pin);
86void digitalWrite(int pin);
87uint32_t millis();
88uint32_t micros();
89
90namespace Internal {
91int Setup(int argc,const char* argv[]);
92} // namespace Internal
93
94} //namespace AlMarDuino
95
96#endif // _INC_ALMARDUINO_H
void setup()
Función setup() a ser definida por el programador.
void loop()
Función loop() a ser definida por el programador.