Exemplo n.º 1
0
def setting():
    gpio.setting_gpio()
    moter.setting()
    line.setting()
    client.setting()
    jodo.setting()
    servo.setting()
    liner.setting()
Exemplo n.º 2
0
import test_gpio as gpio
import test_line as line
import test_jodo
import test_moter as moter
import threading
import test_servo
import test_moter_liner

gpio.setting_gpio()
line.setting()
test_jodo.setting()
moter.setting()
test_moter_liner.setting()
test_servo.setting()

gpio.time.sleep(3)

speed = 65
df = 2


def handler(channel):
    l, c, r = line.line_data()
    gpio.time.sleep(0.5)
    if (c == 0 and l == 0 and r == 0):
        moter.setMoterControl(0, 5)


while (True):
    l, c, r = line.line_data()
Exemplo n.º 3
0
def setting():
    gpio.setting_gpio()
    moter.setting()
    line.setting()