🎁📬❄️📦Adafruit Holiday Shipping Deadlines 2019: Please place all UPS 2 Day orders by 11am Monday, December 16 📦❄️📬🎁
0

GFX, get current cursor position?
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

GFX, get current cursor position?

by TobiasRipper on Fri Nov 15, 2019 9:11 pm

Good day, everyone. I'm using an arduino due with somehow retro fitted a display onto it. I'm suing a GFX library but I need to be able to type text AND errase text as well. For that I need to keep track of the cursort in the GFX library tft display object. Is there any way to access the x and y variables?

TobiasRipper
 
Posts: 7
Joined: Mon Feb 19, 2018 12:27 am

Re: GFX, get current cursor position?

by TobiasRipper on Fri Nov 15, 2019 9:17 pm

Ok for anyone else wondering, I found it

tft.getCursorX()
tft.getCursorY()

This was not in the documentation.

TobiasRipper
 
Posts: 7
Joined: Mon Feb 19, 2018 12:27 am

Re: GFX, get current cursor position?

by adafruit_support_carter on Mon Nov 18, 2019 2:18 pm


adafruit_support_carter
 
Posts: 13681
Joined: Tue Nov 29, 2016 2:45 pm

Re: GFX, get current cursor position?

by TobiasRipper on Mon Nov 18, 2019 2:31 pm

Ah, this looks different. I was looking at the PDF documentation.
Thanks for the heads up.

TobiasRipper
 
Posts: 7
Joined: Mon Feb 19, 2018 12:27 am

Re: GFX, get current cursor position?

by adafruit_support_carter on Mon Nov 18, 2019 2:51 pm

Sounds like maybe the guide? That will cover the main topics, but can't cover everything in the library.

This doxy stuff is relatively new. We're trying to get that going for all the Arduino libraries and also link to them from various places - like the guide. It's on going work. There are a lot of libraries and guides to cover.

adafruit_support_carter
 
Posts: 13681
Joined: Tue Nov 29, 2016 2:45 pm

Re: GFX, get current cursor position?

by TobiasRipper on Tue Nov 19, 2019 3:24 pm

Yeah, I think that's what it was.

TobiasRipper
 
Posts: 7
Joined: Mon Feb 19, 2018 12:27 am

Re: GFX, get current cursor position?

by Disciple on Tue Nov 19, 2019 4:38 pm

adafruit_support_carter wrote:This doxy stuff is relatively new. We're trying to get that going for all the Arduino libraries and also link to them from various places - like the guide. It's on going work. There are a lot of libraries and guides to cover.

Can you hear me cheering from here? (c:

Hallelujah!
Disciple

Disciple
 
Posts: 710
Joined: Tue Jan 06, 2015 8:13 pm

Please be positive and constructive with your questions and comments.