Advertisement
Guest User

Untitled

a guest
Nov 12th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. t, create "buttons" to send the commands:
  2.  
  3. <!DOCTYPE html>
  4. <head>
  5. <title>GPIO Control</title>
  6. <link rel="stylesheet" href='../static/style.css'/>
  7. </head>
  8.  
  9. <body>
  10. <h1>Actuators</h1>
  11. <h2> Status </h2>
  12. <h3> RED LED ==> {{ ledRed }}</h3>
  13. <h3> YLW LED ==> {{ ledYlw }}</h3>
  14. <h3> GRN LED ==> {{ ledGrn }}</h3>
  15. <br>
  16. <h2> Commands </h2>
  17. <h3>
  18. RED LED Ctrl ==>
  19. <a href="/ledRed/on" class="button">TURN ON</a>
  20. <a href="/ledRed/off"class="button">TURN OFF</a>
  21. </h3>
  22. <h3>
  23. YLW LED Ctrl ==>
  24. <a href="/ledYlw/on" class="button">TURN ON</a>
  25. <a href="/ledYlw/off"class="button">TURN OFF</a>
  26. </h3>
  27. <h3>
  28. GRN LED Ctrl ==>
  29. <a href="/ledGrn/on" class="button">TURN ON</a>
  30. <a href="/ledGrn/off"class="button">TURN OFF</a>
  31. </h3>
  32.  
  33. </body>
  34. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement