To turn on the onboard led flash light of the ESP32-CAM module use the following code:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// flash lamp IO | |
#define LAMP 4 | |
void setup() | |
{ | |
pinMode(LAMP, OUTPUT); | |
} | |
void loop() | |
{ | |
digitalWrite(LAMP, HIGH); | |
} |
Keine Kommentare:
Kommentar veröffentlichen