Skip to content

Commit

Permalink
Update lift_control.ino
Browse files Browse the repository at this point in the history
  • Loading branch information
PrajwalPrabhuiisc authored Jul 5, 2022
1 parent d836dfb commit 7b1b4bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lift_control/lift_control.ino
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
// Replace with your network credentials
const char* ssid = "Galaxy M211BF1";
const char* password = "pufy3612";
// Select the Pin for the ultrasonic sensor
const int trigPin = 14;
const int echoPin = 12;
long duration;
Expand All @@ -20,7 +21,6 @@ void setup(void)
{
//the HTML of the web page
page = "<center><h1>Lift Control using Web Server</h1><body><p><a href=\"Forward\"><button>Ground Floor</button></a><p><a href=\"Backward\"><button>First Floor</button></a></p><p><a href=\"Left\"><button>Second Floor</button></a></p><a href=\"Stop\"><button>Stop</button></a></p></body></center>";

pinMode(trigPin, OUTPUT); // Sets the trigPin as an Output
pinMode(echoPin, INPUT); // Sets the echoPin as an Input
pinMode(D2, OUTPUT); // inputs for motor 1
Expand Down

0 comments on commit 7b1b4bc

Please sign in to comment.