I just bought 4 Orangutan controllers for a project I am working on. I powered up the first one and noticed that they come pre-flashed with sample code that, at the least, communicates with the LCD and reads the A/D. Is the source code for this pre-installed firmware available anywhere?
We’ve just been using the hex file for a while, so this hasn’t been tested with recent versions of the development tools. I hope it will at least give you some starting point for using the LCD.
i’ve copied and pasted your code from above, and tried to compile it with WinAVR. i get the following error. can you give some insight? what is the BV(.) function doing?
“make.exe” all
-------- begin --------
avr-gcc (GCC) 3.4.6
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Compiling: Sample02.c
avr-gcc -c -mmcu=atmega168 -I. -gstabs -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-adhlns=Sample02.lst -std=gnu99 -Wp,-M,-MP,-MT,Sample02.o,-MF,.dep/Sample02.o.d Sample02.c -o Sample02.o
Sample02.c: In function `Speaker':
Sample02.c:47: warning: implicit declaration of function `BV'
Sample02.c: In function `main':
Sample02.c:188: error: `ADCSR' undeclared (first use in this function)
Sample02.c:188: error: (Each undeclared identifier is reported only once
Sample02.c:188: error: for each function it appears in.)
Sample02.c:189: error: `ADFR' undeclared (first use in this function)
make.exe: *** [Sample02.o] Error 1