Skip to content
This repository has been archived by the owner on Dec 20, 2021. It is now read-only.

checkbox_checked

Mammad900 edited this page Aug 29, 2020 · 1 revision

checkbox_checked[page][index]

Summary

Returns true if a check-box is checked

Parameters

  1. Page (int) : The number of the page which contains the check-box
  2. Index (int) : The index of the check-box relative to the page

Returns

True if the check-box is checked. False if it was not checked.

Example

void loop(){
    checkPage();
    if(checkbox_checked[0][0]){ // First
        digitalWrite(LED_BUILTIN,HIGH);
    }
    else{
        digitalWrite(LED_BUILTIN,LOW);
    }
}

Output

When the check-box is checked, the built-in LED is on. Else, the LED is off

Clone this wiki locally