コード例 #1
0
def start_cb():
    codey.stop_other_scripts()
    while True:
        codey.display.show(rocky.color_ir_sensor.is_obstacle_ahead())
コード例 #2
0
def on_button_c_callback():
    codey.stop_other_scripts()
    codey.display.show("yaw")
    while True:
        print(neurons.gyro_sensor.get_yaw())
        time.sleep(0.05)
コード例 #3
0
def button_b_cb():
    codey.stop_other_scripts()
    while True:
        print("button b event")
コード例 #4
0
def start_cb():
    codey.stop_other_scripts()
    while True:
        codey.display.show(rocky.color_ir_sensor.get_reflected_infrared())
コード例 #5
0
def button_c_cb():
    codey.stop_other_scripts()
    while True:
        codey.display.show(rocky.color_ir_sensor.get_reflected_light())
コード例 #6
0
def button_b_cb():
    codey.stop_other_scripts()
    while True:
        codey.display.show(rocky.color_ir_sensor.get_greyness())
コード例 #7
0
def button_a_cb():
    codey.stop_other_scripts()
    while True:
        codey.display.show(rocky.color_ir_sensor.get_light_strength())