smoke-and-wires / tft-shield-example-code Goto Github PK
View Code? Open in Web Editor NEWTFT Arduino Code
Home Page: www.smokeandwires.co.nz
License: Other
TFT Arduino Code
Home Page: www.smokeandwires.co.nz
License: Other
I'm using arduino IDE 1.6.6 with arduino uno. All examples sort the same error
C:\Users\Eraldo\Documents\Arduino\libraries\SWTFT\SWTFT.cpp: In member function 'void SWTFT::drawLine3Byte(int16_t, int16_t, int16_t, int16_t, uint8_t, uint8_t, uint8_t)':
C:\Users\Eraldo\Documents\Arduino\libraries\SWTFT\SWTFT.cpp:629:16: error: 'swap' was not declared in this scope
swap(x0, y0);
^
C:\Users\Eraldo\Documents\Arduino\libraries\SWTFT\SWTFT.cpp:634:16: error: 'swap' was not declared in this scope
swap(x0, x1);
^
exit status 1
Errore durante la compilazione
Anyone has an idea? Thanks
I tried the example tftbmp, but with guidance set to 1 or 3 is not working.
Hi, any idea what is needed for this to work on a Leonardo please?
drawPixel() alters its behaviour based on the rotation data member. But if you've called SWTFT::setRotation() the hardware is already dealing with it, so it's applied "twice". The rendering gets messed up; pixels pile up on the edges.
The three of the four examples work (great, many thanks!) , but tftpaint does not compile :-(
Below is the compiler output. Hope you can help.
thanks,
Ewald....
Arduino: 1.0.6 + Td: 1.20-rc5 (Mac OS X), Board: "Arduino Uno"
/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-g++ -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -mmcu=atmega328p -DF_CPU=16000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=106 -I/Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/cores/arduino -I/Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/variants/standard -I/Applications/Arduino.app/Contents/Resources/Java/libraries/Adafruit_GFX -I/Applications/Arduino.app/Contents/Resources/Java/libraries/SWTFT-Shield /var/folders/0c/_9w2vr0d66737wxd8vb_l4ph0000gn/T/build7722940267231770035.tmp/tftpaint.cpp -o /var/folders/0c/_9w2vr0d66737wxd8vb_l4ph0000gn/T/build7722940267231770035.tmp/tftpaint.cpp.o
tftpaint.ino:5:25: warning: TouchScreen.h: No such file or directory
tftpaint:23: error: 'TouchScreen' does not name a type
tftpaint.ino: In function 'void setup()':
tftpaint.ino:46: warning: only initialized variables can be placed into program memory area
tftpaint.ino:52: warning: only initialized variables can be placed into program memory area
tftpaint.ino: In function 'void loop()':
tftpaint:84: error: 'TSPoint' was not declared in this scope
tftpaint:84: error: expected `;' before 'p'
tftpaint:96: error: 'p' was not declared in this scope
tftpaint.ino:140: warning: comparison between signed and unsigned integer expressions
tftpaint.ino:141: warning: comparison between signed and unsigned integer expressions
tftpaint.ino:145: warning: comparison between signed and unsigned integer expressions
Hello!
If I connect the display to the arduino mega it flickers only.
subject says all :)
On my display, when I rotate, images are not diplayed correctly.
The rotationtest
works flawless. But on tftbmp
, only the non-rotated woofs display correctly. The rotated ones look "blurry". I am guessing the image needs to be read columns wise, not row wise, but I am not sure.
I used tftbmp
to display just a single landscape image (bmpDraw()
) and used tft.setRotation(1)
before the draw. All inside setup()
, loop()
is empty. The image is messed up. Portrait images work like expected.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.