klasse motor test
This commit is contained in:
		@@ -13,6 +13,8 @@ for pin in pins_out:
 | 
			
		||||
for pin in pins_in:
 | 
			
		||||
   GPIO.setup(pins_in[pin]['nr'], GPIO.IN)
 | 
			
		||||
 | 
			
		||||
GPIO.output(pins_out['kamera']['nr'], GPIO.HIGH)
 | 
			
		||||
 | 
			
		||||
m1 = motor('drehen', m1_a1, m1_b1, m1_a2, m1_b2, m1_t1, m1_t2, m1_te, m1_es, 0)
 | 
			
		||||
m1 = motor('kippen', m2_a1, m2_b1, m2_a2, m2_b2, m2_t1, m2_t2, m2_te, m2_es, 1)
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -23,9 +23,9 @@
 | 
			
		||||
   {% for pin in pins_in %}
 | 
			
		||||
    <h3>{{ pins_in[pin].name }}
 | 
			
		||||
    {% if pins_in[pin].state == true %}
 | 
			
		||||
        ist gerade <strong>an</strong></h3><div class="row"><div class="col-md-2">
 | 
			
		||||
        ist gerade <strong>an</strong></h3>
 | 
			
		||||
    {% else %}
 | 
			
		||||
        ist gerade <strong>aus</strong></h3><div class="row"><div class="col-md-2">
 | 
			
		||||
        ist gerade <strong>aus</strong></h3>
 | 
			
		||||
    {% endif %}
 | 
			
		||||
   {% endfor %}
 | 
			
		||||
</body>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user