Arduino due

Post here about your Arduino projects, get help - for Adafruit customers!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: Arduino due

Post by adafruit_support_rick »

Adding a delay is the correct way to debounce touches.

User avatar
PaulvZ
 
Posts: 41
Joined: Sun Nov 30, 2014 4:25 pm

Re: Arduino due

Post by PaulvZ »

I am testing different sizes for #BUFFPIXEL when reading bitmaps, the Due has enough space. But only the value 20 gives the picture. The other values I tried gives just colored stripes. Is there a rule for changing the value of #BUFFPIXEL?

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: Arduino due

Post by adafruit_support_rick »

I just tried 20, 30, and 40. They all work. What values are you trying?

User avatar
PaulvZ
 
Posts: 41
Joined: Sun Nov 30, 2014 4:25 pm

Re: Arduino due

Post by PaulvZ »

I tried 60, 90, 120 and 180.

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: Arduino due

Post by adafruit_support_rick »

It works with 60 for me.

The problem with the larger numbers is this variable in bmpDraw

Code: Select all

 uint8_t  buffidx = sizeof(sdbuffer); // Current position in sdbuffer
 
It's an 8-bit unsigned integer. The reason BUFF PIXEL 90 doesn't work is that the size of sdbuffer becomes 270, which is too large for an 8-bit integer. Change buffidx to type uint16_t, and the larger BUFFPIXEL sizes will work.

However, the comment about it getting faster with larger BUFFPIXEL values is just wrong. I clock it as the same with 180 as it is with 20.

User avatar
MikeMenci
 
Posts: 1
Joined: Sun Feb 15, 2015 5:57 am

Re: Arduino due

Post by MikeMenci »

Hello ,
Why is this error - anyone can help me here - Im trying to solve this for 2 days now...
This report would have more information with
"Show verbose output during compilation"
enabled in File > Preferences.
Arduino: 1.0.6 + Td: 1.21-test2 (Windows 7), Board: "Teensy 3.1"
In file included from Screensaver.h:8:0,
from Reflow.ino:15:
Adafruit_FT6206.h:47: error: redefinition of 'class TS_Point'
class TS_Point {
^
In file included from SplashScreen.h:8:0,
from ReflowChateau.ino:14:
Adafruit_FT6206.h:47: error: previous definition of 'class TS_Point'
class TS_Point {
^
In file included from Screensaver.h:8:0,
from Reflow.ino:15:
Adafruit_FT6206.h:58: error: redefinition of 'class Adafruit_FT6206'
class Adafruit_FT6206 {

Errors of Adafruit_FT6206 go on and on....
class TS_point - public

any tips ?

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: Arduino due

Post by adafruit_support_rick »

You have two different libraries that are defining TS_Point. Adafruit_FT6206 is one of them. What's the other one?
Please post your code.

User avatar
jim_lee
 
Posts: 709
Joined: Thu May 24, 2012 8:24 pm

Re: Arduino due

Post by jim_lee »

Bit late but I think this is the trouble..

#ifndef Adafruit_FT6206_h
#define Adafruit_FT6206_h

..code..

#endif

is missing in Adafruit_FT6206.h

-jim lee

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: Arduino due

Post by adafruit_support_rick »

Good find. Fixed!

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino”