Advertisement
zhexo

RPi Flask index.html

Jan 17th, 2024 (edited)
873
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 0.53 KB | Software | 0 0
  1. <!DOCTYPE html>
  2. <html lang="en">
  3.  
  4. <head>
  5. <meta charset="utf-8" />
  6. <title>GPIO controll</title>
  7. <link rel="stylesheet" href='../static/style.css'/>
  8. <meta name="generator" content="Geany 1.37.1" />
  9. </head>
  10. <body>
  11.         <h1>RPi GPIO Control</h1>
  12.         <br>
  13.         <h2> LED Status & Control </h2>
  14.         <h3> RED LED ==>  {{ ledRed  }}  ==>  
  15.             {% if  ledRed   == 1 %}
  16.                 <a href="/ledRed/off"class="button">TURN OFF</a>
  17.             {% else %}
  18.                 <a href="/ledRed/on" class="button">TURN ON</a>  
  19.             {% endif %}  
  20.         </h3>  
  21. </body>
  22. </html>
  23.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement