Librería para clientes de AlMarSimulator
1
Librería para E/S de simuladores genéricos (C/C++/Matlab/Python)
Loading...
Searching...
No Matches
AlMarDuino.h
Go to the documentation of this file.
1
#ifndef _INC_ALMARDUINO_H
2
#define _INC_ALMARDUINO_H
3
37
56
58
void
setup
();
59
61
void
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
81
namespace
AlMarDuino {
84
void
delay
(
int
time_ms);
85
bool
digitalRead(
int
pin);
86
void
digitalWrite(
int
pin);
87
uint32_t millis();
88
uint32_t micros();
89
90
namespace
Internal {
91
int
Setup(
int
argc,
const
char
* argv[]);
92
}
// namespace Internal
93
94
}
//namespace AlMarDuino
95
96
#endif
// _INC_ALMARDUINO_H
setup
void setup()
Función setup() a ser definida por el programador.
AlMarDuino::delay
void delay(int time_ms)
loop
void loop()
Función loop() a ser definida por el programador.
Distrib
Client
Library
include
AlMarDuino.h
Generated by
1.10.0