GithubHelp home page GithubHelp logo

xpt2046's People

Contributors

spapadim 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  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

xpt2046's Issues

Fatal exception 0 occurred when used on esp8266

Hello,I am using UTFT and your library to creat a GUI on esp8266.
The library works pretty well when not combined with UTFT,but once I put them together,a wdt reset occured as follows:
Exception (0):
epc1=0x40106ecd epc2=0x00000000 epc3=0x00000000 excvaddr=0x00000000 depc=0x00000000

ctx: cont
sp: 3fff5e90 end: 3fff60c0 offset: 01a0

stack>>>
3fff6030: 3fff6082 3fff6080 3fff49e8 40206880
3fff6040: 02a20432 00000009 3ffea9d0 3fff5094
3fff6050: 00000001 3fff5068 3fff5068 40206705
3fff6060: 3ffed9bc 00000000 3fff50a0 3fff5094
3fff6070: 3fff49e8 3fff5068 3fff49dc 40209ade
3fff6080: 3ffed998 000007d0 000007d0 3fff5094
3fff6090: 3fffdad0 3fff49dc 3fff508c 40209431
3fff60a0: 3fffdad0 00000000 3fff508c 4020c394
3fff60b0: feefeffe feefeffe 3fff50a0 40100718
<<<stack<<<

ets Jan 8 2013,rst cause:1, boot mode:(3,0)

load 0x4010f000, len 1384, room 16
tail 8
chksum 0x2d
csum 0x2d
v09f0c112
~ld

By referring to Xtensa Reference Manual,I find that In this case the exception cause (0) is 'Illegal instruction' .Having added many"Serial.write"to my sketch,it eventually turns out that this line is the cause of trouble:
XPT2046.cpp Line 143: x = (uint16_t)(_cal_dx * (vj - _cal_vj1) / _cal_dvj + CAL_MARGIN);
And the following similar lines are also problematic.

Please help me with this.Thanks.

touch rotation

Hi, I have the exact same screen and esp and I used your tutorial to connect it all. I'm trying to rotate the touch but I can't seem to understand how to do so. Can you help me? Thanks

Connection diagram

Hello, thank you for sharing this project with us !

I have some questions about the physical configuration. I am using an ESP82-66-12E board. I made following connections

+5V =>Vin (5V)
GND => GND

MOSI => pin D7
SCK => pin D5
DC => pin D3
CS => pin D8
RST => pin D4
TP_CS => 3.3V (Touch screen disabled)

In the code I modified it to reflect this hardware configuration :

//Ucglib_ILI9341_18x240x320_HWSPI ucg(/cd=/ 2 , /cs=/ 4, /reset=/ 5);
Ucglib_ILI9341_18x240x320_HWSPI ucg(/cd=/ D3 , /cs=/ D8, /reset=/ D4);

XPT2046 touch(/cs=/ D8, /irq=/ 0);

Not sure what the IRQ pin is ? it is not mentioned on my XPT2046 board (see attached picture)
Also not sure about the "cd" pin .. is this "DC" ?

Thank you for your help !! Kind Regards, Tony
xpt2046 display connections esp8266

Examples

Examples work only if you change rows
in the original was so

void setup() {
  delay(1000);
  ucg.begin(UCG_FONT_MODE_TRANSPARENT);
  //ucg.begin(UCG_FONT_MODE_SOLID);
  touch.begin(ucg.getWidth(), ucg.getHeight());  // Must be done before setting rotation
  ucg.setRotate270();
  touch.setRotation(touch.ROT270);
  ucg.clearScreen();

but works like this

void setup() {
  delay(1000);
  ucg.begin(UCG_FONT_MODE_TRANSPARENT);
  //ucg.begin(UCG_FONT_MODE_SOLID);
  ucg.clearScreen();     // ----- move here---------------------------------------//
  touch.begin(ucg.getWidth(), ucg.getHeight());  // Must be done before setting rotation
  ucg.setRotate270();
  touch.setRotation(touch.ROT270);

Licensing for NodeMCU

Hello spapadim,

I have created a port using parts of your lib for the NodeMCU framework and would like to merge it with the dev branch - see merge request [1]. As NodeMCU is MIT licensed and your lib is GPL I wanted to ask if you might change the license or at least allow the merge.

[1] - nodemcu/nodemcu-firmware#1242

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.