Skip to content

Commit

Permalink
Replace pin number in WiFiWebServer.ino with defined constants to fix #…
Browse files Browse the repository at this point in the history
  • Loading branch information
pablosun committed Aug 9, 2017
1 parent 96c06d0 commit 5aaea12
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ void loop() {
client.println("<!DOCTYPE HTML>");
client.println("<html>");
// output the value of each analog input pin
for (int analogChannel = 0; analogChannel < 6; analogChannel++) {
for (int analogChannel = A0; analogChannel <= A3; analogChannel++) {
int sensorReading = analogRead(analogChannel);
client.print("analog input ");
client.print(analogChannel);
Expand Down

0 comments on commit 5aaea12

Please sign in to comment.