@sei
It would be great if you get the ITead display to work, I have one of them laying around there too somewhere :). Would be nice to put it to use.
Let us know how it goes.
Mike
@sei
It would be great if you get the ITead display to work, I have one of them laying around there too somewhere :). Would be nice to put it to use.
Let us know how it goes.
Mike
@gbulmer
It's been a while since the last time I coded in C, also I think i never really used defines, so thanks for your remark! I definitly learned something :)
@mikep
I'll put up a new thread in the next minutes ;)
sei - thank you for taking the comments as constructive. I'm glad they were helpful.
sei:
@mbolivar
I've just made an entry to the supported Shields page.
thanks!
I have added touchscreen support to sei's library. I didn't modify sei's lib, but the github files below are organized to be added to your maple sketchbook libraries/ folder. Touchscreen support is modification of Arduino version, mainly changing from 10-bit to 12-bit ADC. Besides the graphicstest example, I added rotationtest, tftpaint, touchscreendemo. I used sei's pin assignments, and like the Arduino, the touchscreen shares pins with the display. library files are here
https://github.com/manitou48/maple-touchscreen-libs
sei's implementation is faster (graphicstest) than Arduino.
test Arduino Maple (time in ms)
testttext 843 323
testlines 15090 8994
testfastlines 979 340
Hi manitou,
That's great ! Thank you very much :)
Would you mind if i put a link to your github in the wiki instead of the link to the gist ?
Sadly I could not try your stuff yet, but i'm definitly looking forward to it !
@mbolivar & gbulmer: you are welcome :)
Would you mind if i put a link to your github in the wiki instead of the link to the gist ?
No problem, but give it a test flight first ...
That's nice :)
Sadly I can't get it running. I suspect my Touchshield is defect, as I don't get any sane readings from the Touchscreen. So the next thing I'll do is to organize an arduino and test if the shield ist ok.
I checked my Touchshield with an arduino and it works flawlessly.
But with the maple it just doesn't work. The readings don't change if I touch the screen or not and p.z is always 0.
Do you have a special version of the touchshield or is it just the standard one ?
just standard device. ran it with both arduino and maple.
on maple, touchscreen pins
#define YP 18 // must be an analog pin
#define XM 17 // must be an analog pin
#define YM 9 // can be a digital pin
#define XP 8 // can be a digital pin
I also measured resistance as suggested
// For better pressure precision, we need to know the resistance
// between X+ and X- Use any multimeter to read it
// For the one we're using, its 300 ohms across the X plate
and used 361
TouchScreen ts = TouchScreen(XP, YP, XM, YM, 361);
you also might also try NUMSAMPLES 1 in TouchScreen.cpp
one sketch liked it at 1 another at 2 ...
You must log in to post.