Skip to content

Instantly share code, notes, and snippets.

@IsmailSan

IsmailSan/photo

Created Sep 9, 2019
Embed
What would you like to do?
#include <Arduino.h>
#include <ESPectro32_Board.h>
void setup() {
Serial.begin(9600);
ESPectro32.begin();
}
void loop() {
Serial.print("Photo Transistor Value: ");
Serial.println(ESPectro32.readPhotoTransistorValue());
Serial.print("Photo Transistor Voltage :" );
Serial.println(ESPectro32.readPhotoTransistorVoltage());
delay(1000);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment