flask gpio test
This commit is contained in:
0
src/__init__.py
Normal file
0
src/__init__.py
Normal file
25
src/pins.py
Normal file
25
src/pins.py
Normal file
@ -0,0 +1,25 @@
|
||||
pins_out = {
|
||||
'kamera' : 2,
|
||||
'encoder' : 3
|
||||
}
|
||||
|
||||
pins_in = {
|
||||
'endschalter1' : {'nr' : 23, 'name' : 'Endschalter, Motor 1', 'state' : GPIO.HIGH},
|
||||
'endschalter2' : {'nr' : 26, 'name' : 'Endschalter, Motor 2', 'state' : GPIO.HIGH},
|
||||
'endschalter3' : {'nr' : 25, 'name' : 'Endschalter, Motor 2', 'state' : GPIO.HIGH}
|
||||
}
|
||||
|
||||
pins_pwm = {
|
||||
'm1_a1' : 17,
|
||||
'm1_b1' : 18,
|
||||
'm1_a2' : 27,
|
||||
'm1_b2' : 22,
|
||||
'm2_a1' : 19,
|
||||
'm2_b1' : 13,
|
||||
'm2_a2' : 6,
|
||||
'm2_b2' : 5,
|
||||
'm3_a1' : 16,
|
||||
'm3_b1' : 12,
|
||||
'm3_a2' : 21,
|
||||
'm3_b2' : 20,
|
||||
}
|
Reference in New Issue
Block a user