Skip to content

Instantly share code, notes, and snippets.

@IsmailSan
Created September 9, 2019 09:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save IsmailSan/04697b18a7c81e03783030457e6afbec to your computer and use it in GitHub Desktop.
Save IsmailSan/04697b18a7c81e03783030457e6afbec to your computer and use it in GitHub Desktop.
#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