SpeedTest Encoder does'nt compile in Arduino 1.6.8

cormier

New member
Hello,

When I try to compile SpeedTest to test the encoder librairy, i get an error message : "REGTYPE doesnt name a type" (see joined screen copy).

I'm using Arduino 1.6.8.

Does any body can tell me what's wrong ?
 

Attachments

  • Encoder_SpeedTest.jpg
    Encoder_SpeedTest.jpg
    66.4 KB · Views: 112
Try replacing that part with this:

Code:
#if defined(__AVR__) || defined(TEENSYDUINO)
#define REGTYPE unsigned char
#else
#define REGTYPE unsigned long
#endif
 
Back
Top