GithubHelp home page GithubHelp logo

smoke-and-wires / tft-shield-example-code Goto Github PK

View Code? Open in Web Editor NEW
57.0 23.0 78.0 276 KB

TFT Arduino Code

Home Page: www.smokeandwires.co.nz

License: Other

C++ 37.96% Processing 35.33% Arduino 7.77% C 18.93%

tft-shield-example-code's Introduction

TFT-Shield-Example-Code

tft-shield-example-code's People

Contributors

nicktg avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

tft-shield-example-code's Issues

swap not declared

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

BMP files

I tried the example tftbmp, but with guidance set to 1 or 3 is not working.

drawPixel() doesn't work after setRotation()

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.

tftpaint doesn't compile

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

When rotated, images are not displayed correctly

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.