Project

General

Profile

Revision 265

Added by John Sexton over 16 years ago

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.

View differences:

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