Teensy 2.0 + ADNS-9800 (Laser motion) = can't compile code

obs

New member
Hello.
I'm trying to assemble custom trackball with ADNS-9800 laser motion sensor.
Can't flashing my Teensy 2.0 with firmware provided by author of ADNS (all the time i've got an compilation error, fix one arising another)
For compiling I'm using: Arduino 1.8.16 (Teensyduino 1.57)
ADNS-9800 Laser Motion Sensor
https://www.tindie.com/products/jkicklighter/adns-9800-laser-motion-sensor/#product-reviews
ADNS-9800 firmware files:
https://github.com/mrjohnk/ADNS-9800/tree/master/PJRC-Teensy-Example

Can someone help me to fix that code bugs and run it, or give advice what i'm doing wrong?
 
With cases like this, it would always help to include in your description, the output of the compiler so we can see the errors.

I did download the example files and verified that it did not build.

Note: It needs both .ino files inside a directory with the name of the make test sketch.

It then failed to build, with error prog_uchar does not name a type.

A quick google on prog_uchar showed that this define had been depreciated a long time ago and simple fix was to
replace that in both the two ino files with: const unsigned char

Like: const unsigned char firmware_data[] PROGMEM = {

It now builds for me.

Note: as this sketch is setup to mimic a mouse, you need to choose one of the USB types that include mouse in it.
I build with the one Serial+mouse+keyboard+joystick
 
Back
Top