def setting(): gpio.setting_gpio() moter.setting() line.setting() client.setting() jodo.setting() servo.setting() liner.setting()
def setting(): gp.setting_gpio() limit.setting_limit() act.setting_act() app.setting_approach() app.setting_interrupt() app2.setting_approach() app2.setting_interrupt() limit.setting_interrupt() client.setting()
import test_gpio import test_jodo test_gpio.setting_gpio() test_jodo.setting() test_gpio.GPIO.add_event_detect(test_jodo.pin_jodo, test_gpio.GPIO.FALLING, callback=test_jodo.jodo_interrpt) try: while (True): jodo = test_jodo.jodo_data_d0() print(jodo) test_gpio.time.sleep(1) except KeyboardInterrupt: print("close") test_gpio.cleaning()
import test_gpio as gp import test_act as act import test_limit as limit import test_approach2 as app gp.setting_gpio() #limit.setting_limit() app.setting_approach() #limit.setting_interrupt() app.setting_interrupt() while(True): try: print() except KeyboardInterrupt: print('keyboardInterrupt')
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()
def setting(): gpio.setting_gpio() moter_liner.setting()
def setting(): gpio.setting_gpio() moter.setting() line.setting() client.setting()