Due to high demand expect some shipping delays at this time, orders may not ship for 3-4 business days. On MLK Day no orders will be shipped.
0

Librairy ILI9341 and button
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Librairy ILI9341 and button

by LArsene on Tue Nov 16, 2021 6:42 am

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.

LArsene
 
Posts: 3
Joined: Tue Nov 16, 2021 6:17 am

Re: Librairy ILI9341 and button

by mikeysklar on Thu Nov 18, 2021 3:47 pm

Are you using

Code: Select all | TOGGLE FULL SIZE
buttonEnabled = true;


That above can be set to false to disable it.

mikeysklar
 
Posts: 6498
Joined: Mon Aug 01, 2016 8:10 pm

Re: Librairy ILI9341 and button

by LArsene on Sat Nov 20, 2021 5:19 am

Hello,
Thanks, I'll do a test.

LArsene
 
Posts: 3
Joined: Tue Nov 16, 2021 6:17 am

Re: Librairy ILI9341 and button

by LArsene on Sun Dec 05, 2021 10:45 am

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.

LArsene
 
Posts: 3
Joined: Tue Nov 16, 2021 6:17 am

Please be positive and constructive with your questions and comments.