Sonntag, 24. Februar 2019

#3 Turn led flash light AI-Thinker ESP32-Cam code snippet example

ESP32-CAM led flash light


To turn on the onboard led flash light of the ESP32-CAM module use the following code:

// flash lamp IO
#define LAMP 4
void setup()
{
pinMode(LAMP, OUTPUT);
}
void loop()
{
digitalWrite(LAMP, HIGH);
}
view raw gistfile1.txt hosted with ❤ by GitHub

Keine Kommentare:

Kommentar veröffentlichen

Post Top Ad

Your Ad Spot