Created
September 9, 2019 09:55
-
-
Save IsmailSan/04697b18a7c81e03783030457e6afbec to your computer and use it in GitHub Desktop.
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
#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