Revision 265
Got basic programming capabilities working on laptop. Did minor tests with orbs and motors.
Note: Check device manager to determine port for programming to Robot.
main.c | ||
---|---|---|
1 |
#include <dragonfly_lib.h> |
|
2 |
|
|
3 |
int main(void) { |
|
4 |
dragonfly_init(ALL_ON); |
|
5 |
return 0; |
|
6 |
} |
|
1 |
#include <dragonfly_lib.h> |
|
2 |
|
|
3 |
int main(void) { |
|
4 |
dragonfly_init(ALL_ON); |
|
5 |
motors_init(); |
|
6 |
|
|
7 |
while(1) { |
|
8 |
|
|
9 |
motor1_set(1, 255); |
|
10 |
motor2_set(1, 255); |
|
11 |
|
|
12 |
} |
|
13 |
|
|
14 |
|
|
15 |
return 0; |
|
16 |
} |
Also available in: Unified diff