There was an error while loading. Please reload this page.
1 parent e71e534 commit f24d06eCopy full SHA for f24d06e
1 file changed
openfpgaduino.cc
@@ -178,6 +178,8 @@ DEFINE_FUNCTION_HANDLE(ain_b);
178
DEFINE_FUNCTION_HANDLE(am2301_temperature);
179
DEFINE_FUNCTION_HANDLE(am2301_moisture);
180
DEFINE_FUNCTION_HANDLE(steering);
181
+DEFINE_FUNCTION_HANDLE(stepmotor_init);
182
+DEFINE_FUNCTION_HANDLE(stepmotor);
183
DEFINE_FUNCTION_HANDLE(sleep);
184
DEFINE_FUNCTION_HANDLE(usleep);
185
@@ -209,6 +211,8 @@ fun_table table[] = {
209
211
DEFINE_FUNCTION(float,am2301_temperature,(int id)),
210
212
DEFINE_FUNCTION(float,am2301_moisture,(int id)),
213
DEFINE_FUNCTION(void,steering,(int id, int angle)),
214
+ DEFINE_FUNCTION(void,stepmotor_init,(int id, unsigned int frequence, unsigned int duty_cycle, unsigned int delay)),
215
+ DEFINE_FUNCTION(void,stepmotor,(int id, int forward_back, int step)),
216
DEFINE_FUNCTION(unsigned int,sleep,(unsigned int seconds)),
217
DEFINE_FUNCTION(int,usleep,(unsigned int useconds)),
218
TABLE_NULL
0 commit comments