A collection of examples for using the gpiozero library for reading sensors and activating actuators
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
311 B

4 years ago
<!DOCTYPE html>
<html>
<head>
<title>LEDS!</title>
</head>
<body>
<form action="/on/" method="post">
<button name="forwardBtn" type="submit">On</button>
</form>
<form action="/off/" method="post">
<button name="forwardBtn" type="submit">Off</button>
</form>
<p>{{led_status}} </p>
</body>
</html>