Librairy ILI9341 and button

EL Wire/Tape/Panels, LEDs, pixels and strips, LCDs and TFTs, etc products from Adafruit

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
LArsene
 
Posts: 4
Joined: Tue Nov 16, 2021 6:17 am

Librairy ILI9341 and button

Post by LArsene »

Hello,
I am new to this forum. I am French and do not have a good command of your language! Due to the fact I did not consult all the posts.
I am on a data display project and buttons on a sensitive TFT display and use the ILI9341esp library.
My question: after drawing a button and activating it, how do I deactivate it.
Thank you for your answers.
Good day.

User avatar
mikeysklar
 
Posts: 13936
Joined: Mon Aug 01, 2016 8:10 pm

Re: Librairy ILI9341 and button

Post by mikeysklar »

Are you using

Code: Select all

buttonEnabled = true;
That above can be set to false to disable it.

User avatar
LArsene
 
Posts: 4
Joined: Tue Nov 16, 2021 6:17 am

Re: Librairy ILI9341 and button

Post by LArsene »

Hello,
Thanks, I'll do a test.

User avatar
LArsene
 
Posts: 4
Joined: Tue Nov 16, 2021 6:17 am

Re: Librairy ILI9341 and button

Post by LArsene »

Hello,
I failed to write the syntax correctly.
Right_Settings_button.initButton (false); does not work
Left_Adjustments_button.drawButton (false); works but does not initialize the button
Right_Settings_button.initButton (false); does not work either!
Thanks for your help.

Locked
Please be positive and constructive with your questions and comments.

Return to “Glowy things (LCD, LED, TFT, EL) purchased at Adafruit”