Skip to content

Commit ed3da1a

Browse files
authored
Light Sensor(CdS) example code
1 parent 8e80099 commit ed3da1a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
void setup() {
2+
Serial.begin(9600);
3+
}
4+
5+
void loop() {
6+
int CdS = analogRead(A0);
7+
Serial.println(CdS);
8+
}

0 commit comments

Comments
 (0)