-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathREADME
76 lines (57 loc) · 2.94 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
geled
=====
This project contains code to control an Arduino to drive multiple
strings of GE color effects lights in interesting ways.
The interesting components are as follows:
led.pde - Code to run on the Arduino itself
drive.c - Code to 'drive' the Arduino, using the
serial port to pass simple messages
libled.c - A library to simplify the process of
setting pixels; it uses led.cfg to
specify an x/y to string/addr mapping.
ledsim.c - A library to to simulate libled so
you can do development without a string of lights.
war.c - A very simple 'space war' game for two
that uses libled or ledsim.
Requirements
============
This project was written by a Debian Linux user and, as of this date,
has only every been run on a Debian Linux system.
However, the code is fairly portable. If you're clever and patient,
you can likely get it to work for you.
The bulk of the Arduino code is contained in led.pde. That should
work in any Arduino environment, and should get you a running
driver on your Arduino.
You will need the drive command line utility. Again, the Makefile
will build it on a Linux system, and maybe other Unix systems.
But it should be possible to compile it on any Unix (including Mac OS X)
fairly easily. For Windows, it'll be harder; you'll have to manually
port the serial IO stuff.
On Debian, I have the following relevant packages:
ii arduino 0018+dfsg-6 AVR development board IDE and built-in libraries
ii avr-libc 1:1.6.8-2 Standard C library for Atmel AVR development
ii avrdude 5.10-3 software for programming Atmel AVR microcontrollers
ii binutils-avr 2.20.1-1 Binary utilities supporting Atmel's AVR targets
ii gcc-avr 1:4.3.5-1 The GNU C compiler (cross compiler for avr)
ii arduino 0018+dfsg-6 AVR development board IDE and built-in libraries
ii arduino-core
I suspect an apt-get install arduino-core gcc-avr will get you all of those.
You also now will need libft-dev to get freetype dev libraries.
You need to download the contents of web/.gitignore from the internet
and drop them into the web/ subdirectory; that includes an Arduino
logo, jquery, and jquery-TextFill.
You need to download a 1.0 Arduino development environment, and make
a symbolic link in the top level directory named 'current-arduino'
that points to that directory.
Usage:
=====
This commmand:
make && make upload
should result in compiling + uploading the program to the Arduino.
And
./drive init
./drive status
./drive chase
Will make the Arduino do interesting things. Note that
make reset
is also quite handy.