umstellen auf pigpio

This commit is contained in:
2021-03-05 15:09:21 +01:00
parent e1b7352d91
commit 56dfc2251e
5 changed files with 141 additions and 88 deletions

View File

@ -12,7 +12,7 @@
<h1>RPi Web Server</h1>
{% for pin in pins %}
<h2>{{ pins[pin].name }}
{% if pins[pin].state == true %}
{% if pins[pin].state == 1 %}
ist gerade <strong>an</strong></h2><div class="row"><div class="col-md-2">
<a href="/{{pin}}/off" class="btn btn-block btn-lg btn-default" role="button">Turn off</a></div></div>
{% else %}
@ -22,7 +22,7 @@
{% endfor %}
{% for pin in pins_in %}
<h3>{{ pins_in[pin].name }}
{% if pins_in[pin].state == true %}
{% if pins_in[pin].state == 1 %}
ist gerade <strong>an</strong></h3>
{% else %}
ist gerade <strong>aus</strong></h3>