#include <dmotor.h> #include <unistd.h> int main(int argc, char *argv[]) { motor_a_speed(MAX_SPEED); motor_c_speed(MAX_SPEED); motor_a_dir(fwd); motor_c_dir(fwd); sleep(4); motor_a_dir(rev); motor_c_dir(rev); sleep(4); motor_a_dir(brake); motor_c_dir(brake); return 0; } |
PROGRAMS=helloworld.lx first_program.lx |
$ make |
$ ls Makefile first_program.c first_program.lx helloworld.c helloworld.lx |
$ dll first_program.lx |