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:

branches/battery/code/projects/template/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
}
branches/battery/code/projects/template/Makefile
14 14
# USE_WIRELESS = 1
15 15

  
16 16
# com1 = serial port. Use lpt1 to connect to parallel port.
17
AVRDUDE_PORT = com4
17
AVRDUDE_PORT = com6
18 18
#
19 19
#
20 20
###################################

Also available in: Unified diff