{ "version": "kb-projects-0.1", "licences": { "gpiozero": "BSD-3-Clause (GPIO Zero examples)", "raspberrypilearning": "CC BY-SA 4.0 (Raspberry Pi Foundation projects)" }, "scenes": [ { "origin": "gpiozero", "id": "all_on_3.py", "title": "All on when pressed", "source": "https://github.com/gpiozero/gpiozero/blob/4e60a6a4e20b4a14416bbe77e28a54c670a199b3/docs/examples/all_on_3.py", "remote_gpio": false, "hardware": [], "device_mappings": { "button": 2, "buzzer": 3, "red_led": 4, "amber_led": 5, "green_led": 6 }, "device_kinds": { "button": "digital_in", "buzzer": "digital_out", "red_led": "digital_out", "amber_led": "digital_out", "green_led": "digital_out" }, "device_classes": { "button": "Button", "buzzer": "Buzzer", "red_led": "LED", "amber_led": "LED", "green_led": "LED" }, "ops": [ { "device": "button", "op": "when_pressed", "args": [], "kwargs": {} }, { "device": "button", "op": "when_released", "args": [], "kwargs": {} } ], "rpigpio_calls": [], "prose_wiring_low_confidence": [], "conflicts": [], "usable_v1": true }, { "origin": "gpiozero", "id": "angular_servo.py", "title": "Servo", "source": "https://github.com/gpiozero/gpiozero/blob/4e60a6a4e20b4a14416bbe77e28a54c670a199b3/docs/examples/angular_servo.py", "remote_gpio": false, "hardware": [], "device_mappings": { "servo": 17 }, "device_kinds": { "servo": "pwm_out" }, "device_classes": { "servo": "AngularServo" }, "ops": [], "rpigpio_calls": [], "prose_wiring_low_confidence": [], "conflicts": [], "usable_v1": true }, { "origin": "gpiozero", "id": "bluedot_led.py", "title": "BlueDot LED", "source": "https://github.com/gpiozero/gpiozero/blob/4e60a6a4e20b4a14416bbe77e28a54c670a199b3/docs/examples/bluedot_led.py", "remote_gpio": false, "hardware": [], "device_mappings": { "led": 17 }, "device_kinds": { "led": "digital_out" }, "device_classes": { "led": "LED" }, "ops": [ { "device": "led", "op": "on", "args": [], "kwargs": {} }, { "device": "led", "op": "off", "args": [], "kwargs": {} } ], "rpigpio_calls": [], "prose_wiring_low_confidence": [], "conflicts": [], "usable_v1": true }, { "origin": "gpiozero", "id": "bluedot_robot_1.py", "title": "BlueDot robot", "source": "https://github.com/gpiozero/gpiozero/blob/4e60a6a4e20b4a14416bbe77e28a54c670a199b3/docs/examples/bluedot_robot_1.py", "remote_gpio": false, "hardware": [], "device_mappings": { "left_motor_forward_input": 4, "left_motor_backward_input": 14, "right_motor_forward_input": 17, "right_motor_backward_input": 18 }, "device_kinds": { "left_motor_forward_input": "motor_driver_input", "left_motor_backward_input": "motor_driver_input", "right_motor_forward_input": "motor_driver_input", "right_motor_backward_input": "motor_driver_input" }, "device_classes": { "left_motor_forward_input": "Robot", "left_motor_backward_input": "Robot", "right_motor_forward_input": "Robot", "right_motor_backward_input": "Robot" }, "ops": [ { "device": "robot", "op": "forward", "args": [ null ], "kwargs": {} }, { "device": "robot", "op": "backward", "args": [ null ], "kwargs": {} }, { "device": "robot", "op": "left", "args": [ null ], "kwargs": {} }, { "device": "robot", "op": "right", "args": [ null ], "kwargs": {} } ], "rpigpio_calls": [], "prose_wiring_low_confidence": [], "conflicts": [], "usable_v1": true }, { "origin": "gpiozero", "id": "bluedot_robot_2.py", "title": "BlueDot robot", "source": "https://github.com/gpiozero/gpiozero/blob/4e60a6a4e20b4a14416bbe77e28a54c670a199b3/docs/examples/bluedot_robot_2.py", "remote_gpio": false, "hardware": [], "device_mappings": { "left_motor_forward_input": 4, "left_motor_backward_input": 14, "right_motor_forward_input": 17, "right_motor_backward_input": 18 }, "device_kinds": { "left_motor_forward_input": "motor_driver_input", "left_motor_backward_input": "motor_driver_input", "right_motor_forward_input": "motor_driver_input", "right_motor_backward_input": "motor_driver_input" }, "device_classes": { "left_motor_forward_input": "Robot", "left_motor_backward_input": "Robot", "right_motor_forward_input": "Robot", "right_motor_backward_input": "Robot" }, "ops": [], "rpigpio_calls": [], "prose_wiring_low_confidence": [], "conflicts": [], "usable_v1": true }, { "origin": "gpiozero", "id": "button_1.py", "title": "Button", "source": "https://github.com/gpiozero/gpiozero/blob/4e60a6a4e20b4a14416bbe77e28a54c670a199b3/docs/examples/button_1.py", "remote_gpio": false, "hardware": [], "device_mappings": { "button": 2 }, "device_kinds": { "button": "digital_in" }, "device_classes": { "button": "Button" }, "ops": [], "rpigpio_calls": [], "prose_wiring_low_confidence": [], "conflicts": [], "usable_v1": true }, { "origin": "gpiozero", "id": "button_2.py", "title": "Button", "source": "https://github.com/gpiozero/gpiozero/blob/4e60a6a4e20b4a14416bbe77e28a54c670a199b3/docs/examples/button_2.py", "remote_gpio": false, "hardware": [], "device_mappings": { "button": 2 }, "device_kinds": { "button": "digital_in" }, "device_classes": { "button": "Button" }, "ops": [ { "device": "button", "op": "wait_for_press", "args": [], "kwargs": {} } ], "rpigpio_calls": [], "prose_wiring_low_confidence": [], "conflicts": [], "usable_v1": true }, { "origin": "gpiozero", "id": "button_3.py", "title": "Button", "source": "https://github.com/gpiozero/gpiozero/blob/4e60a6a4e20b4a14416bbe77e28a54c670a199b3/docs/examples/button_3.py", "remote_gpio": false, "hardware": [], "device_mappings": { "button": 2 }, "device_kinds": { "button": "digital_in" }, "device_classes": { "button": "Button" }, "ops": [ { "device": "button", "op": "when_pressed", "args": [], "kwargs": {} } ], "rpigpio_calls": [], "prose_wiring_low_confidence": [], "conflicts": [], "usable_v1": true }, { "origin": "gpiozero", "id": "button_4.py", "title": "Button", "source": "https://github.com/gpiozero/gpiozero/blob/4e60a6a4e20b4a14416bbe77e28a54c670a199b3/docs/examples/button_4.py", "remote_gpio": false, "hardware": [], "device_mappings": { "button": 2 }, "device_kinds": { "button": "digital_in" }, "device_classes": { "button": "Button" }, "ops": [ { "device": "button", "op": "when_pressed", "args": [], "kwargs": {} }, { "device": "button", "op": "when_released", "args": [], "kwargs": {} } ], "rpigpio_calls": [], "prose_wiring_low_confidence": [], "conflicts": [], "usable_v1": true }, { "origin": "gpiozero", "id": "button_camera_1.py", "title": "Button controlled camera", "source": "https://github.com/gpiozero/gpiozero/blob/4e60a6a4e20b4a14416bbe77e28a54c670a199b3/docs/examples/button_camera_1.py", "remote_gpio": false, "hardware": [], "device_mappings": { "button": 2 }, "device_kinds": { "button": "digital_in" }, "device_classes": { "button": "Button" }, "ops": [ { "device": "button", "op": "when_pressed", "args": [], "kwargs": {} } ], "rpigpio_calls": [], "prose_wiring_low_confidence": [], "conflicts": [], "usable_v1": true }, { "origin": "gpiozero", "id": "button_camera_2.py", "title": "Button controlled camera", "source": "https://github.com/gpiozero/gpiozero/blob/4e60a6a4e20b4a14416bbe77e28a54c670a199b3/docs/examples/button_camera_2.py", "remote_gpio": false, "hardware": [], "device_mappings": { "left_button": 2, "right_button": 3 }, "device_kinds": { "left_button": "digital_in", "right_button": "digital_in" }, "device_classes": { "left_button": "Button", "right_button": "Button" }, "ops": [ { "device": "left_button", "op": "when_pressed", "args": [], "kwargs": {} }, { "device": "left_button", "op": "when_released", "args": [], "kwargs": {} }, { "device": "right_button", "op": "when_pressed", "args": [], "kwargs": {} } ], "rpigpio_calls": [], "prose_wiring_low_confidence": [], "conflicts": [], "usable_v1": true }, { "origin": "gpiozero", "id": "button_led_1.py", "title": "Button controlled LED", "source": "https://github.com/gpiozero/gpiozero/blob/4e60a6a4e20b4a14416bbe77e28a54c670a199b3/docs/examples/button_led_1.py", "remote_gpio": false, "hardware": [], "device_mappings": { "led": 17, "button": 2 }, "device_kinds": { "led": "digital_out", "button": "digital_in" }, "device_classes": { "led": "LED", "button": "Button" }, "ops": [ { "device": "button", "op": "when_pressed", "args": [], "kwargs": {} }, { "device": "button", "op": "when_released", "args": [], "kwargs": {} } ], "rpigpio_calls": [], "prose_wiring_low_confidence": [], "conflicts": [], "usable_v1": true }, { "origin": "gpiozero", "id": "button_led_2.py", "title": "Button controlled LED", "source": "https://github.com/gpiozero/gpiozero/blob/4e60a6a4e20b4a14416bbe77e28a54c670a199b3/docs/examples/button_led_2.py", "remote_gpio": false, "hardware": [], "device_mappings": { "led": 17, "button": 2 }, "device_kinds": { "led": "digital_out", "button": "digital_in" }, "device_classes": { "led": "LED", "button": "Button" }, "ops": [], "rpigpio_calls": [], "prose_wiring_low_confidence": [], "conflicts": [], "usable_v1": true }, { "origin": "gpiozero", "id": "button_shutdown.py", "title": "Shutdown button", "source": "https://github.com/gpiozero/gpiozero/blob/4e60a6a4e20b4a14416bbe77e28a54c670a199b3/docs/examples/button_shutdown.py", "remote_gpio": false, "hardware": [], "device_mappings": { "shutdown_btn": 17 }, "device_kinds": { "shutdown_btn": "digital_in" }, "device_classes": { "shutdown_btn": "Button" }, "ops": [ { "device": "shutdown_btn", "op": "when_held", "args": [], "kwargs": {} } ], "rpigpio_calls": [], "prose_wiring_low_confidence": [], "conflicts": [], "usable_v1": true }, { "origin": "gpiozero", "id": "button_stop_motion.py", "title": "Push button stop motion", "source": "https://github.com/gpiozero/gpiozero/blob/4e60a6a4e20b4a14416bbe77e28a54c670a199b3/docs/examples/button_stop_motion.py", "remote_gpio": false, "hardware": [], "device_mappings": { "button": 2 }, "device_kinds": { "button": "digital_in" }, "device_classes": { "button": "Button" }, "ops": [ { "device": "button", "op": "wait_for_press", "args": [], "kwargs": {} } ], "rpigpio_calls": [], "prose_wiring_low_confidence": [], "conflicts": [], "usable_v1": true }, { "origin": "gpiozero", "id": "color_picker.py", "title": "Rotary encoder", "source": "https://github.com/gpiozero/gpiozero/blob/4e60a6a4e20b4a14416bbe77e28a54c670a199b3/docs/examples/color_picker.py", "remote_gpio": false, "hardware": [], "device_mappings": { "encoder_a": 16, "encoder_b": 20, "rgb_red": 22, "rgb_green": 23, "rgb_blue": 24, "btn": 21 }, "device_kinds": { "encoder_a": "digital_in", "encoder_b": "digital_in", "rgb_red": "pwm_out", "rgb_green": "pwm_out", "rgb_blue": "pwm_out", "btn": "digital_in" }, "device_classes": { "encoder_a": "RotaryEncoder", "encoder_b": "RotaryEncoder", "rgb_red": "RGBLED", "rgb_green": "RGBLED", "rgb_blue": "RGBLED", "btn": "Button" }, "ops": [ { "device": "rotor", "op": "when_rotated", "args": [], "kwargs": {} }, { "device": "btn", "op": "when_released", "args": [], "kwargs": {} }, { "device": "btn", "op": "when_held", "args": [], "kwargs": {} } ], "rpigpio_calls": [], "prose_wiring_low_confidence": [], "conflicts": [], "usable_v1": true }, { "origin": "gpiozero", "id": "combining_sources.py", "title": null, "source": "https://github.com/gpiozero/gpiozero/blob/4e60a6a4e20b4a14416bbe77e28a54c670a199b3/docs/examples/combining_sources.py", "remote_gpio": false, "hardware": [], "device_mappings": { "a_button": 2, "b_button": 3, "led": 17 }, "device_kinds": { "a_button": "digital_in", "b_button": "digital_in", "led": "digital_out" }, "device_classes": { "a_button": "Button", "b_button": "Button", "led": "LED" }, "ops": [], "rpigpio_calls": [], "prose_wiring_low_confidence": [], "conflicts": [], "usable_v1": true }, { "origin": "gpiozero", "id": "cpu_temperature_bar_graph.py", "title": "CPU Temperature Bar Graph", "source": "https://github.com/gpiozero/gpiozero/blob/4e60a6a4e20b4a14416bbe77e28a54c670a199b3/docs/examples/cpu_temperature_bar_graph.py", "remote_gpio": false, "hardware": [], "device_mappings": { "bar_led_1": 2, "bar_led_2": 3, "bar_led_3": 4, "bar_led_4": 5, "bar_led_5": 6, "bar_led_6": 7, "bar_led_7": 8 }, "device_kinds": { "bar_led_1": "digital_out", "bar_led_2": "digital_out", "bar_led_3": "digital_out", "bar_led_4": "digital_out", "bar_led_5": "digital_out", "bar_led_6": "digital_out", "bar_led_7": "digital_out" }, "device_classes": { "bar_led_1": "LEDBarGraph", "bar_led_2": "LEDBarGraph", "bar_led_3": "LEDBarGraph", "bar_led_4": "LEDBarGraph", "bar_led_5": "LEDBarGraph", "bar_led_6": "LEDBarGraph", "bar_led_7": "LEDBarGraph" }, "ops": [], "rpigpio_calls": [], "prose_wiring_low_confidence": [], "conflicts": [], "usable_v1": true }, { "origin": "gpiozero", "id": "custom_generator.py", "title": null, "source": "https://github.com/gpiozero/gpiozero/blob/4e60a6a4e20b4a14416bbe77e28a54c670a199b3/docs/examples/custom_generator.py", "remote_gpio": false, "hardware": [], "device_mappings": { "led": 17 }, "device_kinds": { "led": "digital_out" }, "device_classes": { "led": "LED" }, "ops": [], "rpigpio_calls": [], "prose_wiring_low_confidence": [], "conflicts": [], "usable_v1": true }, { "origin": "gpiozero", "id": "custom_generator_finite.py", "title": null, "source": "https://github.com/gpiozero/gpiozero/blob/4e60a6a4e20b4a14416bbe77e28a54c670a199b3/docs/examples/custom_generator_finite.py", "remote_gpio": false, "hardware": [], "device_mappings": { "led": 17 }, "device_kinds": { "led": "digital_out" }, "device_classes": { "led": "LED" }, "ops": [], "rpigpio_calls": [], "prose_wiring_low_confidence": [], "conflicts": [], "usable_v1": true }, { "origin": "gpiozero", "id": "disk_usage_bar_graph.py", "title": null, "source": "https://github.com/gpiozero/gpiozero/blob/4e60a6a4e20b4a14416bbe77e28a54c670a199b3/docs/examples/disk_usage_bar_graph.py", "remote_gpio": false, "hardware": [], "device_mappings": { "bar_led_1": 2, "bar_led_2": 3, "bar_led_3": 4, "bar_led_4": 5, "bar_led_5": 6, "bar_led_6": 7, "bar_led_7": 8 }, "device_kinds": { "bar_led_1": "digital_out", "bar_led_2": "digital_out", "bar_led_3": "digital_out", "bar_led_4": "digital_out", "bar_led_5": "digital_out", "bar_led_6": "digital_out", "bar_led_7": "digital_out" }, "device_classes": { "bar_led_1": "LEDBarGraph", "bar_led_2": "LEDBarGraph", "bar_led_3": "LEDBarGraph", "bar_led_4": "LEDBarGraph", "bar_led_5": "LEDBarGraph", "bar_led_6": "LEDBarGraph", "bar_led_7": "LEDBarGraph" }, "ops": [], "rpigpio_calls": [], "prose_wiring_low_confidence": [], "conflicts": [], "usable_v1": true }, { "origin": "gpiozero", "id": "distance_sensor_1.py", "title": "Distance sensor", "source": "https://github.com/gpiozero/gpiozero/blob/4e60a6a4e20b4a14416bbe77e28a54c670a199b3/docs/examples/distance_sensor_1.py", "remote_gpio": false, "hardware": [], "device_mappings": { "distance_echo": 23, "distance_trigger": 24 }, "device_kinds": { "distance_echo": "digital_in", "distance_trigger": "digital_out" }, "device_classes": { "distance_echo": "DistanceSensor", "distance_trigger": "DistanceSensor" }, "ops": [], "rpigpio_calls": [], "prose_wiring_low_confidence": [], "conflicts": [], "usable_v1": true }, { "origin": "gpiozero", "id": "distance_sensor_2.py", "title": "Distance sensor", "source": "https://github.com/gpiozero/gpiozero/blob/4e60a6a4e20b4a14416bbe77e28a54c670a199b3/docs/examples/distance_sensor_2.py", "remote_gpio": false, "hardware": [], "device_mappings": { "distance_echo": 23, "distance_trigger": 24, "led": 16 }, "device_kinds": { "distance_echo": "digital_in", "distance_trigger": "digital_out", "led": "digital_out" }, "device_classes": { "distance_echo": "DistanceSensor", "distance_trigger": "DistanceSensor", "led": "LED" }, "ops": [ { "device": "sensor", "op": "when_in_range", "args": [], "kwargs": {} }, { "device": "sensor", "op": "when_out_of_range", "args": [], "kwargs": {} } ], "rpigpio_calls": [], "prose_wiring_low_confidence": [], "conflicts": [], "usable_v1": true }, { "origin": "gpiozero", "id": "garden_light.py", "title": null, "source": "https://github.com/gpiozero/gpiozero/blob/4e60a6a4e20b4a14416bbe77e28a54c670a199b3/docs/examples/garden_light.py", "remote_gpio": false, "hardware": [], "device_mappings": { "garden": 2, "pir_sensor": 4, "light": 5 }, "device_kinds": { "garden": "digital_out", "pir_sensor": "digital_in", "light": "rc_timing_in" }, "device_classes": { "garden": "LED", "pir_sensor": "MotionSensor", "light": "LightSensor" }, "ops": [], "rpigpio_calls": [], "prose_wiring_low_confidence": [], "conflicts": [], "usable_v1": true }, { "origin": "gpiozero", "id": "internet_status_indicator.py", "title": "Internet connection status indicator", "source": "https://github.com/gpiozero/gpiozero/blob/4e60a6a4e20b4a14416bbe77e28a54c670a199b3/docs/examples/internet_status_indicator.py", "remote_gpio": false, "hardware": [], "device_mappings": { "green_led": 17, "red_led": 18 }, "device_kinds": { "green_led": "digital_out", "red_led": "digital_out" }, "device_classes": { "green_led": "LED", "red_led": "LED" }, "ops": [], "rpigpio_calls": [], "prose_wiring_low_confidence": [], "conflicts": [], "usable_v1": true }, { "origin": "gpiozero", "id": "led_1.py", "title": "LED", "source": "https://github.com/gpiozero/gpiozero/blob/4e60a6a4e20b4a14416bbe77e28a54c670a199b3/docs/examples/led_1.py", "remote_gpio": false, "hardware": [], "device_mappings": { "red_led": 17 }, "device_kinds": { "red_led": "digital_out" }, "device_classes": { "red_led": "LED" }, "ops": [ { "device": "red", "op": "on", "args": [], "kwargs": {} }, { "device": "red", "op": "off", "args": [], "kwargs": {} } ], "rpigpio_calls": [], "prose_wiring_low_confidence": [], "conflicts": [], "usable_v1": true }, { "origin": "gpiozero", "id": "led_2.py", "title": "LED", "source": "https://github.com/gpiozero/gpiozero/blob/4e60a6a4e20b4a14416bbe77e28a54c670a199b3/docs/examples/led_2.py", "remote_gpio": false, "hardware": [], "device_mappings": { "red_led": 17 }, "device_kinds": { "red_led": "digital_out" }, "device_classes": { "red_led": "LED" }, "ops": [ { "device": "red", "op": "blink", "args": [], "kwargs": {} } ], "rpigpio_calls": [], "prose_wiring_low_confidence": [], "conflicts": [], "usable_v1": true }, { "origin": "gpiozero", "id": "led_bargraph_1.py", "title": "LEDBarGraph", "source": "https://github.com/gpiozero/gpiozero/blob/4e60a6a4e20b4a14416bbe77e28a54c670a199b3/docs/examples/led_bargraph_1.py", "remote_gpio": false, "hardware": [], "device_mappings": { "bar_led_1": 5, "bar_led_2": 6, "bar_led_3": 13, "bar_led_4": 19, "bar_led_5": 26, "bar_led_6": 20 }, "device_kinds": { "bar_led_1": "digital_out", "bar_led_2": "digital_out", "bar_led_3": "digital_out", "bar_led_4": "digital_out", "bar_led_5": "digital_out", "bar_led_6": "digital_out" }, "device_classes": { "bar_led_1": "LEDBarGraph", "bar_led_2": "LEDBarGraph", "bar_led_3": "LEDBarGraph", "bar_led_4": "LEDBarGraph", "bar_led_5": "LEDBarGraph", "bar_led_6": "LEDBarGraph" }, "ops": [ { "device": "graph", "op": "value=", "args": [ 1 ], "kwargs": {} }, { "device": "graph", "op": "value=", "args": [ null ], "kwargs": {} }, { "device": "graph", "op": "value=", "args": [ null ], "kwargs": {} }, { "device": "graph", "op": "value=", "args": [ null ], "kwargs": {} }, { "device": "graph", "op": "value=", "args": [ -1 ], "kwargs": {} } ], "rpigpio_calls": [], "prose_wiring_low_confidence": [], "conflicts": [], "usable_v1": true }, { "origin": "gpiozero", "id": "led_bargraph_2.py", "title": "LEDBarGraph", "source": "https://github.com/gpiozero/gpiozero/blob/4e60a6a4e20b4a14416bbe77e28a54c670a199b3/docs/examples/led_bargraph_2.py", "remote_gpio": false, "hardware": [], "device_mappings": { "bar_led_1": 5, "bar_led_2": 6, "bar_led_3": 13, "bar_led_4": 19, "bar_led_5": 26 }, "device_kinds": { "bar_led_1": "digital_out", "bar_led_2": "digital_out", "bar_led_3": "digital_out", "bar_led_4": "digital_out", "bar_led_5": "digital_out" }, "device_classes": { "bar_led_1": "LEDBarGraph", "bar_led_2": "LEDBarGraph", "bar_led_3": "LEDBarGraph", "bar_led_4": "LEDBarGraph", "bar_led_5": "LEDBarGraph" }, "ops": [ { "device": "graph", "op": "value=", "args": [ null ], "kwargs": {} }, { "device": "graph", "op": "value=", "args": [ null ], "kwargs": {} }, { "device": "graph", "op": "value=", "args": [ null ], "kwargs": {} }, { "device": "graph", "op": "value=", "args": [ null ], "kwargs": {} }, { "device": "graph", "op": "value=", "args": [ null ], "kwargs": {} } ], "rpigpio_calls": [], "prose_wiring_low_confidence": [], "conflicts": [], "usable_v1": true }, { "origin": "gpiozero", "id": "led_board_1.py", "title": "LEDBoard", "source": "https://github.com/gpiozero/gpiozero/blob/4e60a6a4e20b4a14416bbe77e28a54c670a199b3/docs/examples/led_board_1.py", "remote_gpio": false, "hardware": [], "device_mappings": { "led_1": 5, "led_2": 6, "led_3": 13, "led_4": 19, "led_5": 26 }, "device_kinds": { "led_1": "digital_out", "led_2": "digital_out", "led_3": "digital_out", "led_4": "digital_out", "led_5": "digital_out" }, "device_classes": { "led_1": "LEDBoard", "led_2": "LEDBoard", "led_3": "LEDBoard", "led_4": "LEDBoard", "led_5": "LEDBoard" }, "ops": [ { "device": "leds", "op": "value=", "args": [ null ], "kwargs": {} }, { "device": "leds", "op": "on", "args": [], "kwargs": {} }, { "device": "leds", "op": "off", "args": [], "kwargs": {} }, { "device": "leds", "op": "blink", "args": [], "kwargs": {} } ], "rpigpio_calls": [], "prose_wiring_low_confidence": [], "conflicts": [], "usable_v1": true }, { "origin": "gpiozero", "id": "led_board_2.py", "title": "LEDBoard", "source": "https://github.com/gpiozero/gpiozero/blob/4e60a6a4e20b4a14416bbe77e28a54c670a199b3/docs/examples/led_board_2.py", "remote_gpio": false, "hardware": [], "device_mappings": { "led_1": 5, "led_2": 6, "led_3": 13, "led_4": 19, "led_5": 26 }, "device_kinds": { "led_1": "digital_out", "led_2": "digital_out", "led_3": "digital_out", "led_4": "digital_out", "led_5": "digital_out" }, "device_classes": { "led_1": "LEDBoard", "led_2": "LEDBoard", "led_3": "LEDBoard", "led_4": "LEDBoard", "led_5": "LEDBoard" }, "ops": [ { "device": "leds", "op": "value=", "args": [ null ], "kwargs": {} } ], "rpigpio_calls": [], "prose_wiring_low_confidence": [], "conflicts": [], "usable_v1": true }, { "origin": "gpiozero", "id": "led_board_3.py", "title": "LEDBoard", "source": "https://github.com/gpiozero/gpiozero/blob/4e60a6a4e20b4a14416bbe77e28a54c670a199b3/docs/examples/led_board_3.py", "remote_gpio": false, "hardware": [], "device_mappings": { "led_1": 5, "led_2": 6, "led_3": 13, "led_4": 19, "led_5": 26 }, "device_kinds": { "led_1": "digital_out", "led_2": "digital_out", "led_3": "digital_out", "led_4": "digital_out", "led_5": "digital_out" }, "device_classes": { "led_1": "LEDBoard", "led_2": "LEDBoard", "led_3": "LEDBoard", "led_4": "LEDBoard", "led_5": "LEDBoard" }, "ops": [], "rpigpio_calls": [], "prose_wiring_low_confidence": [], "conflicts": [], "usable_v1": true }, { "origin": "gpiozero", "id": "led_board_4.py", "title": "LEDBoard", "source": "https://github.com/gpiozero/gpiozero/blob/4e60a6a4e20b4a14416bbe77e28a54c670a199b3/docs/examples/led_board_4.py", "remote_gpio": false, "hardware": [], "device_mappings": { "led_1": 2, "led_2": 3, "led_3": 4, "led_4": 5, "led_5": 6, "led_6": 7, "led_7": 8, "led_8": 9 }, "device_kinds": { "led_1": "digital_out", "led_2": "digital_out", "led_3": "digital_out", "led_4": "digital_out", "led_5": "digital_out", "led_6": "digital_out", "led_7": "digital_out", "led_8": "digital_out" }, "device_classes": { "led_1": "LEDBoard", "led_2": "LEDBoard", "led_3": "LEDBoard", "led_4": "LEDBoard", "led_5": "LEDBoard", "led_6": "LEDBoard", "led_7": "LEDBoard", "led_8": "LEDBoard" }, "ops": [], "rpigpio_calls": [], "prose_wiring_low_confidence": [], "conflicts": [], "usable_v1": true }, { "origin": "gpiozero", "id": "led_board_5.py", "title": "LEDBoard", "source": "https://github.com/gpiozero/gpiozero/blob/4e60a6a4e20b4a14416bbe77e28a54c670a199b3/docs/examples/led_board_5.py", "remote_gpio": false, "hardware": [], "device_mappings": { "led_1": 2, "led_2": 3, "led_3": 4, "led_4": 5, "led_5": 6, "led_6": 7, "led_7": 8, "led_8": 9 }, "device_kinds": { "led_1": "digital_out", "led_2": "digital_out", "led_3": "digital_out", "led_4": "digital_out", "led_5": "digital_out", "led_6": "digital_out", "led_7": "digital_out", "led_8": "digital_out" }, "device_classes": { "led_1": "LEDBoard", "led_2": "LEDBoard", "led_3": "LEDBoard", "led_4": "LEDBoard", "led_5": "LEDBoard", "led_6": "LEDBoard", "led_7": "LEDBoard", "led_8": "LEDBoard" }, "ops": [ { "device": "leds", "op": "off", "args": [], "kwargs": {} }, { "device": "leds", "op": "off", "args": [], "kwargs": {} }, { "device": "leds", "op": "off", "args": [], "kwargs": {} }, { "device": "leds", "op": "off", "args": [], "kwargs": {} } ], "rpigpio_calls": [], "prose_wiring_low_confidence": [], "conflicts": [], "usable_v1": true }, { "origin": "gpiozero", "id": "led_board_6.py", "title": "LEDBoard", "source": "https://github.com/gpiozero/gpiozero/blob/4e60a6a4e20b4a14416bbe77e28a54c670a199b3/docs/examples/led_board_6.py", "remote_gpio": false, "hardware": [], "device_mappings": {}, "device_kinds": {}, "device_classes": {}, "ops": [], "rpigpio_calls": [], "prose_wiring_low_confidence": [], "conflicts": [], "usable_v1": false }, { "origin": "gpiozero", "id": "led_board_7.py", "title": "LEDBoard", "source": "https://github.com/gpiozero/gpiozero/blob/4e60a6a4e20b4a14416bbe77e28a54c670a199b3/docs/examples/led_board_7.py", "remote_gpio": false, "hardware": [], "device_mappings": {}, "device_kinds": {}, "device_classes": {}, "ops": [ { "device": "leds", "op": "off", "args": [], "kwargs": {} } ], "rpigpio_calls": [], "prose_wiring_low_confidence": [], "conflicts": [], "usable_v1": false }, { "origin": "gpiozero", "id": "led_builtin.py", "title": "Controlling the Pi's own LEDs", "source": "https://github.com/gpiozero/gpiozero/blob/4e60a6a4e20b4a14416bbe77e28a54c670a199b3/docs/examples/led_builtin.py", "remote_gpio": false, "hardware": [], "device_mappings": { "power": 35, "activity": 47 }, "device_kinds": { "power": "digital_out", "activity": "digital_out" }, "device_classes": { "power": "LED", "activity": "LED" }, "ops": [ { "device": "activity", "op": "blink", "args": [], "kwargs": {} }, { "device": "power", "op": "blink", "args": [], "kwargs": {} } ], "rpigpio_calls": [], "prose_wiring_low_confidence": [], "conflicts": [ "power: pin 35 is not GPIO0-27", "activity: pin 47 is not GPIO0-27" ], "usable_v1": false }, { "origin": "gpiozero", "id": "led_button.py", "title": null, "source": "https://github.com/gpiozero/gpiozero/blob/4e60a6a4e20b4a14416bbe77e28a54c670a199b3/docs/examples/led_button.py", "remote_gpio": false, "hardware": [], "device_mappings": { "led": 17, "button": 2 }, "device_kinds": { "led": "digital_out", "button": "digital_in" }, "device_classes": { "led": "LED", "button": "Button" }, "ops": [], "rpigpio_calls": [], "prose_wiring_low_confidence": [], "conflicts": [], "usable_v1": true }, { "origin": "gpiozero", "id": "led_button_loop.py", "title": null, "source": "https://github.com/gpiozero/gpiozero/blob/4e60a6a4e20b4a14416bbe77e28a54c670a199b3/docs/examples/led_button_loop.py", "remote_gpio": false, "hardware": [], "device_mappings": { "led": 17, "button": 2 }, "device_kinds": { "led": "digital_out", "button": "digital_in" }, "device_classes": { "led": "LED", "button": "Button" }, "ops": [ { "device": "led", "op": "value=", "args": [ null ], "kwargs": {} } ], "rpigpio_calls": [], "prose_wiring_low_confidence": [], "conflicts": [], "usable_v1": true }, { "origin": "gpiozero", "id": "led_button_remote_1.py", "title": "LED + Button", "source": "https://github.com/gpiozero/gpiozero/blob/4e60a6a4e20b4a14416bbe77e28a54c670a199b3/docs/examples/led_button_remote_1.py", "remote_gpio": true, "hardware": [], "device_mappings": { "button": 2, "led": 17 }, "device_kinds": { "button": "digital_in", "led": "digital_out" }, "device_classes": { "button": "Button", "led": "LED" }, "ops": [], "rpigpio_calls": [], "prose_wiring_low_confidence": [], "conflicts": [], "usable_v1": false }, { "origin": "gpiozero", "id": "led_button_remote_2.py", "title": "LED + 2 Buttons", "source": "https://github.com/gpiozero/gpiozero/blob/4e60a6a4e20b4a14416bbe77e28a54c670a199b3/docs/examples/led_button_remote_2.py", "remote_gpio": true, "hardware": [], "device_mappings": { "led": 17, "1_button": 17, "2_button": 17 }, "device_kinds": { "led": "digital_out", "1_button": "digital_in", "2_button": "digital_in" }, "device_classes": { "led": "LED", "1_button": "Button", "2_button": "Button" }, "ops": [], "rpigpio_calls": [], "prose_wiring_low_confidence": [], "conflicts": [ "two devices share one GPIO" ], "usable_v1": false }, { "origin": "gpiozero", "id": "led_char_display.py", "title": "LEDCharDisplay", "source": "https://github.com/gpiozero/gpiozero/blob/4e60a6a4e20b4a14416bbe77e28a54c670a199b3/docs/examples/led_char_display.py", "remote_gpio": false, "hardware": [], "device_mappings": { "segment_a": 21, "segment_b": 20, "segment_c": 16, "segment_d": 22, "segment_e": 23, "segment_f": 24, "segment_g": 12 }, "device_kinds": { "segment_a": "digital_out", "segment_b": "digital_out", "segment_c": "digital_out", "segment_d": "digital_out", "segment_e": "digital_out", "segment_f": "digital_out", "segment_g": "digital_out" }, "device_classes": { "segment_a": "LEDCharDisplay", "segment_b": "LEDCharDisplay", "segment_c": "LEDCharDisplay", "segment_d": "LEDCharDisplay", "segment_e": "LEDCharDisplay", "segment_f": "LEDCharDisplay", "segment_g": "LEDCharDisplay" }, "ops": [ { "device": "display", "op": "value=", "args": [ null ], "kwargs": {} }, { "device": "display", "op": "off", "args": [], "kwargs": {} } ], "rpigpio_calls": [], "prose_wiring_low_confidence": [], "conflicts": [], "usable_v1": true }, { "origin": "gpiozero", "id": "led_char_source.py", "title": "LEDCharDisplay", "source": "https://github.com/gpiozero/gpiozero/blob/4e60a6a4e20b4a14416bbe77e28a54c670a199b3/docs/examples/led_char_source.py", "remote_gpio": false, "hardware": [], "device_mappings": { "segment_a": 21, "segment_b": 20, "segment_c": 16, "segment_d": 22, "segment_e": 23, "segment_f": 24, "segment_g": 12 }, "device_kinds": { "segment_a": "digital_out", "segment_b": "digital_out", "segment_c": "digital_out", "segment_d": "digital_out", "segment_e": "digital_out", "segment_f": "digital_out", "segment_g": "digital_out" }, "device_classes": { "segment_a": "LEDCharDisplay", "segment_b": "LEDCharDisplay", "segment_c": "LEDCharDisplay", "segment_d": "LEDCharDisplay", "segment_e": "LEDCharDisplay", "segment_f": "LEDCharDisplay", "segment_g": "LEDCharDisplay" }, "ops": [], "rpigpio_calls": [], "prose_wiring_low_confidence": [], "conflicts": [], "usable_v1": true }, { "origin": "gpiozero", "id": "led_pulse.py", "title": "LED with variable brightness", "source": "https://github.com/gpiozero/gpiozero/blob/4e60a6a4e20b4a14416bbe77e28a54c670a199b3/docs/examples/led_pulse.py", "remote_gpio": false, "hardware": [], "device_mappings": { "led": 17 }, "device_kinds": { "led": "pwm_out" }, "device_classes": { "led": "PWMLED" }, "ops": [ { "device": "led", "op": "pulse", "args": [], "kwargs": {} } ], "rpigpio_calls": [], "prose_wiring_low_confidence": [], "conflicts": [], "usable_v1": true }, { "origin": "gpiozero", "id": "led_remote_1.py", "title": null, "source": "https://github.com/gpiozero/gpiozero/blob/4e60a6a4e20b4a14416bbe77e28a54c670a199b3/docs/examples/led_remote_1.py", "remote_gpio": true, "hardware": [], "device_mappings": { "led": 17 }, "device_kinds": { "led": "digital_out" }, "device_classes": { "led": "LED" }, "ops": [ { "device": "led", "op": "on", "args": [], "kwargs": {} }, { "device": "led", "op": "off", "args": [], "kwargs": {} } ], "rpigpio_calls": [], "prose_wiring_low_confidence": [], "conflicts": [], "usable_v1": false }, { "origin": "gpiozero", "id": "led_remote_2.py", "title": null, "source": "https://github.com/gpiozero/gpiozero/blob/4e60a6a4e20b4a14416bbe77e28a54c670a199b3/docs/examples/led_remote_2.py", "remote_gpio": true, "hardware": [], "device_mappings": { "led_1": 17, "led_2": 17 }, "device_kinds": { "led_1": "digital_out", "led_2": "digital_out" }, "device_classes": { "led_1": "LED", "led_2": "LED" }, "ops": [ { "device": "led_1", "op": "on", "args": [], "kwargs": {} }, { "device": "led_2", "op": "off", "args": [], "kwargs": {} }, { "device": "led_1", "op": "off", "args": [], "kwargs": {} }, { "device": "led_2", "op": "on", "args": [], "kwargs": {} } ], "rpigpio_calls": [], "prose_wiring_low_confidence": [], "conflicts": [ "two devices share one GPIO" ], "usable_v1": false }, { "origin": "gpiozero", "id": "led_remote_3.py", "title": null, "source": "https://github.com/gpiozero/gpiozero/blob/4e60a6a4e20b4a14416bbe77e28a54c670a199b3/docs/examples/led_remote_3.py", "remote_gpio": true, "hardware": [], "device_mappings": { "led_1": 17, "led_2": 17 }, "device_kinds": { "led_1": "digital_out", "led_2": "digital_out" }, "device_classes": { "led_1": "LED", "led_2": "LED" }, "ops": [ { "device": "led_1", "op": "on", "args": [], "kwargs": {} }, { "device": "led_2", "op": "off", "args": [], "kwargs": {} }, { "device": "led_1", "op": "off", "args": [], "kwargs": {} }, { "device": "led_2", "op": "on", "args": [], "kwargs": {} } ], "rpigpio_calls": [], "prose_wiring_low_confidence": [], "conflicts": [ "two devices share one GPIO" ], "usable_v1": false }, { "origin": "gpiozero", "id": "led_remote_4.py", "title": null, "source": "https://github.com/gpiozero/gpiozero/blob/4e60a6a4e20b4a14416bbe77e28a54c670a199b3/docs/examples/led_remote_4.py", "remote_gpio": true, "hardware": [], "device_mappings": { "led_1": 17, "led_2": 17 }, "device_kinds": { "led_1": "digital_out", "led_2": "digital_out" }, "device_classes": { "led_1": "LED", "led_2": "LED" }, "ops": [ { "device": "led_1", "op": "on", "args": [], "kwargs": {} }, { "device": "led_2", "op": "off", "args": [], "kwargs": {} }, { "device": "led_1", "op": "off", "args": [], "kwargs": {} }, { "device": "led_2", "op": "on", "args": [], "kwargs": {} } ], "rpigpio_calls": [], "prose_wiring_low_confidence": [], "conflicts": [ "two devices share one GPIO" ], "usable_v1": false }, { "origin": "gpiozero", "id": "led_remote_5.py", "title": null, "source": "https://github.com/gpiozero/gpiozero/blob/4e60a6a4e20b4a14416bbe77e28a54c670a199b3/docs/examples/led_remote_5.py", "remote_gpio": true, "hardware": [], "device_mappings": { "led_1": 17, "led_2": 17, "led_3": 17 }, "device_kinds": { "led_1": "digital_out", "led_2": "digital_out", "led_3": "digital_out" }, "device_classes": { "led_1": "LED", "led_2": "LED", "led_3": "LED" }, "ops": [ { "device": "led_1", "op": "on", "args": [], "kwargs": {} }, { "device": "led_2", "op": "off", "args": [], "kwargs": {} }, { "device": "led_3", "op": "on", "args": [], "kwargs": {} }, { "device": "led_1", "op": "off", "args": [], "kwargs": {} }, { "device": "led_2", "op": "on", "args": [], "kwargs": {} }, { "device": "led_3", "op": "off", "args": [], "kwargs": {} } ], "rpigpio_calls": [], "prose_wiring_low_confidence": [], "conflicts": [ "two devices share one GPIO" ], "usable_v1": false }, { "origin": "gpiozero", "id": "led_travis.py", "title": "Travis build LED indicator", "source": "https://github.com/gpiozero/gpiozero/blob/4e60a6a4e20b4a14416bbe77e28a54c670a199b3/docs/examples/led_travis.py", "remote_gpio": false, "hardware": [], "device_mappings": { "red_led": 12, "green_led": 16 }, "device_kinds": { "red_led": "digital_out", "green_led": "digital_out" }, "device_classes": { "red_led": "LED", "green_led": "LED" }, "ops": [], "rpigpio_calls": [], "prose_wiring_low_confidence": [], "conflicts": [], "usable_v1": true }, { "origin": "gpiozero", "id": "led_variable_brightness.py", "title": "LED with variable brightness", "source": "https://github.com/gpiozero/gpiozero/blob/4e60a6a4e20b4a14416bbe77e28a54c670a199b3/docs/examples/led_variable_brightness.py", "remote_gpio": false, "hardware": [], "device_mappings": { "led": 17 }, "device_kinds": { "led": "pwm_out" }, "device_classes": { "led": "PWMLED" }, "ops": [ { "device": "led", "op": "value=", "args": [ 0 ], "kwargs": {} }, { "device": "led", "op": "value=", "args": [ 0.5 ], "kwargs": {} }, { "device": "led", "op": "value=", "args": [ 1 ], "kwargs": {} } ], "rpigpio_calls": [], "prose_wiring_low_confidence": [], "conflicts": [], "usable_v1": true }, { "origin": "gpiozero", "id": "light_sensor_1.py", "title": "Light sensor", "source": "https://github.com/gpiozero/gpiozero/blob/4e60a6a4e20b4a14416bbe77e28a54c670a199b3/docs/examples/light_sensor_1.py", "remote_gpio": false, "hardware": [], "device_mappings": { "sensor": 18 }, "device_kinds": { "sensor": "rc_timing_in" }, "device_classes": { "sensor": "LightSensor" }, "ops": [], "rpigpio_calls": [], "prose_wiring_low_confidence": [], "conflicts": [], "usable_v1": true }, { "origin": "gpiozero", "id": "light_sensor_2.py", "title": "Light sensor", "source": "https://github.com/gpiozero/gpiozero/blob/4e60a6a4e20b4a14416bbe77e28a54c670a199b3/docs/examples/light_sensor_2.py", "remote_gpio": false, "hardware": [], "device_mappings": { "sensor": 18, "led": 16 }, "device_kinds": { "sensor": "rc_timing_in", "led": "digital_out" }, "device_classes": { "sensor": "LightSensor", "led": "LED" }, "ops": [ { "device": "sensor", "op": "when_dark", "args": [], "kwargs": {} }, { "device": "sensor", "op": "when_light", "args": [], "kwargs": {} } ], "rpigpio_calls": [], "prose_wiring_low_confidence": [], "conflicts": [], "usable_v1": true }, { "origin": "gpiozero", "id": "light_sensor_3.py", "title": "Light sensor", "source": "https://github.com/gpiozero/gpiozero/blob/4e60a6a4e20b4a14416bbe77e28a54c670a199b3/docs/examples/light_sensor_3.py", "remote_gpio": false, "hardware": [], "device_mappings": { "sensor": 18, "led": 16 }, "device_kinds": { "sensor": "rc_timing_in", "led": "pwm_out" }, "device_classes": { "sensor": "LightSensor", "led": "PWMLED" }, "ops": [], "rpigpio_calls": [], "prose_wiring_low_confidence": [], "conflicts": [], "usable_v1": true }, { "origin": "gpiozero", "id": "matching_leds.py", "title": null, "source": "https://github.com/gpiozero/gpiozero/blob/4e60a6a4e20b4a14416bbe77e28a54c670a199b3/docs/examples/matching_leds.py", "remote_gpio": false, "hardware": [], "device_mappings": { "red_led": 14, "green_led": 15, "button": 17 }, "device_kinds": { "red_led": "digital_out", "green_led": "digital_out", "button": "digital_in" }, "device_classes": { "red_led": "LED", "green_led": "LED", "button": "Button" }, "ops": [], "rpigpio_calls": [], "prose_wiring_low_confidence": [], "conflicts": [], "usable_v1": true }, { "origin": "gpiozero", "id": "motion_sensor.py", "title": "Motion sensor", "source": "https://github.com/gpiozero/gpiozero/blob/4e60a6a4e20b4a14416bbe77e28a54c670a199b3/docs/examples/motion_sensor.py", "remote_gpio": false, "hardware": [], "device_mappings": { "pir_sensor": 4, "led": 16 }, "device_kinds": { "pir_sensor": "digital_in", "led": "digital_out" }, "device_classes": { "pir_sensor": "MotionSensor", "led": "LED" }, "ops": [ { "device": "pir", "op": "when_motion", "args": [], "kwargs": {} }, { "device": "pir", "op": "when_no_motion", "args": [], "kwargs": {} } ], "rpigpio_calls": [], "prose_wiring_low_confidence": [], "conflicts": [], "usable_v1": true }, { "origin": "gpiozero", "id": "motor.py", "title": "Motors", "source": "https://github.com/gpiozero/gpiozero/blob/4e60a6a4e20b4a14416bbe77e28a54c670a199b3/docs/examples/motor.py", "remote_gpio": false, "hardware": [], "device_mappings": { "motor_forward_input": 4, "motor_backward_input": 14 }, "device_kinds": { "motor_forward_input": "motor_driver_input", "motor_backward_input": "motor_driver_input" }, "device_classes": { "motor_forward_input": "Motor", "motor_backward_input": "Motor" }, "ops": [ { "device": "motor", "op": "forward", "args": [], "kwargs": {} }, { "device": "motor", "op": "backward", "args": [], "kwargs": {} } ], "rpigpio_calls": [], "prose_wiring_low_confidence": [], "conflicts": [], "usable_v1": true }, { "origin": "gpiozero", "id": "multi_room_doorbell.py", "title": "Multi-room doorbell", "source": "https://github.com/gpiozero/gpiozero/blob/4e60a6a4e20b4a14416bbe77e28a54c670a199b3/docs/examples/multi_room_doorbell.py", "remote_gpio": true, "hardware": [], "device_mappings": {}, "device_kinds": {}, "device_classes": {}, "ops": [], "rpigpio_calls": [], "prose_wiring_low_confidence": [], "conflicts": [], "usable_v1": false }, { "origin": "gpiozero", "id": "multi_room_motion_alert.py", "title": "Multi-room motion alert", "source": "https://github.com/gpiozero/gpiozero/blob/4e60a6a4e20b4a14416bbe77e28a54c670a199b3/docs/examples/multi_room_motion_alert.py", "remote_gpio": true, "hardware": [], "device_mappings": { "led_1": 2, "led_2": 3, "led_3": 4, "led_4": 5 }, "device_kinds": { "led_1": "digital_out", "led_2": "digital_out", "led_3": "digital_out", "led_4": "digital_out" }, "device_classes": { "led_1": "LEDBoard", "led_2": "LEDBoard", "led_3": "LEDBoard", "led_4": "LEDBoard" }, "ops": [], "rpigpio_calls": [], "prose_wiring_low_confidence": [], "conflicts": [], "usable_v1": false }, { "origin": "gpiozero", "id": "negated.py", "title": null, "source": "https://github.com/gpiozero/gpiozero/blob/4e60a6a4e20b4a14416bbe77e28a54c670a199b3/docs/examples/negated.py", "remote_gpio": false, "hardware": [], "device_mappings": { "led": 4, "btn": 17 }, "device_kinds": { "led": "digital_out", "btn": "digital_in" }, "device_classes": { "led": "LED", "btn": "Button" }, "ops": [], "rpigpio_calls": [], "prose_wiring_low_confidence": [], "conflicts": [], "usable_v1": true }, { "origin": "gpiozero", "id": "pot_1.py", "title": "Potentiometer", "source": "https://github.com/gpiozero/gpiozero/blob/4e60a6a4e20b4a14416bbe77e28a54c670a199b3/docs/examples/pot_1.py", "remote_gpio": false, "hardware": [], "device_mappings": {}, "device_kinds": { "pot": "spi_adc" }, "device_classes": {}, "ops": [], "rpigpio_calls": [], "prose_wiring_low_confidence": [], "conflicts": [], "usable_v1": false }, { "origin": "gpiozero", "id": "pot_2.py", "title": "Potentiometer", "source": "https://github.com/gpiozero/gpiozero/blob/4e60a6a4e20b4a14416bbe77e28a54c670a199b3/docs/examples/pot_2.py", "remote_gpio": false, "hardware": [], "device_mappings": { "bar_led_1": 5, "bar_led_2": 6, "bar_led_3": 13, "bar_led_4": 19, "bar_led_5": 26 }, "device_kinds": { "bar_led_1": "digital_out", "bar_led_2": "digital_out", "bar_led_3": "digital_out", "bar_led_4": "digital_out", "bar_led_5": "digital_out", "pot": "spi_adc" }, "device_classes": { "bar_led_1": "LEDBarGraph", "bar_led_2": "LEDBarGraph", "bar_led_3": "LEDBarGraph", "bar_led_4": "LEDBarGraph", "bar_led_5": "LEDBarGraph" }, "ops": [], "rpigpio_calls": [], "prose_wiring_low_confidence": [], "conflicts": [], "usable_v1": true }, { "origin": "gpiozero", "id": "pwmled_pot.py", "title": null, "source": "https://github.com/gpiozero/gpiozero/blob/4e60a6a4e20b4a14416bbe77e28a54c670a199b3/docs/examples/pwmled_pot.py", "remote_gpio": false, "hardware": [], "device_mappings": { "led": 17 }, "device_kinds": { "led": "pwm_out", "pot": "spi_adc" }, "device_classes": { "led": "PWMLED" }, "ops": [], "rpigpio_calls": [], "prose_wiring_low_confidence": [], "conflicts": [], "usable_v1": true }, { "origin": "gpiozero", "id": "pwmled_pot_values.py", "title": null, "source": "https://github.com/gpiozero/gpiozero/blob/4e60a6a4e20b4a14416bbe77e28a54c670a199b3/docs/examples/pwmled_pot_values.py", "remote_gpio": false, "hardware": [], "device_mappings": { "led": 17 }, "device_kinds": { "led": "pwm_out", "pot": "spi_adc" }, "device_classes": { "led": "PWMLED" }, "ops": [], "rpigpio_calls": [], "prose_wiring_low_confidence": [], "conflicts": [], "usable_v1": true }, { "origin": "gpiozero", "id": "random_values.py", "title": null, "source": "https://github.com/gpiozero/gpiozero/blob/4e60a6a4e20b4a14416bbe77e28a54c670a199b3/docs/examples/random_values.py", "remote_gpio": false, "hardware": [], "device_mappings": { "led": 4 }, "device_kinds": { "led": "pwm_out" }, "device_classes": { "led": "PWMLED" }, "ops": [], "rpigpio_calls": [], "prose_wiring_low_confidence": [], "conflicts": [], "usable_v1": true }, { "origin": "gpiozero", "id": "reaction_game.py", "title": "Reaction Game", "source": "https://github.com/gpiozero/gpiozero/blob/4e60a6a4e20b4a14416bbe77e28a54c670a199b3/docs/examples/reaction_game.py", "remote_gpio": false, "hardware": [], "device_mappings": { "led": 17, "player_1": 2, "player_2": 3 }, "device_kinds": { "led": "digital_out", "player_1": "digital_in", "player_2": "digital_in" }, "device_classes": { "led": "LED", "player_1": "Button", "player_2": "Button" }, "ops": [ { "device": "led", "op": "on", "args": [], "kwargs": {} }, { "device": "led", "op": "off", "args": [], "kwargs": {} } ], "rpigpio_calls": [], "prose_wiring_low_confidence": [], "conflicts": [], "usable_v1": true }, { "origin": "gpiozero", "id": "remote_button_robot.py", "title": "Remote button robot", "source": "https://github.com/gpiozero/gpiozero/blob/4e60a6a4e20b4a14416bbe77e28a54c670a199b3/docs/examples/remote_button_robot.py", "remote_gpio": true, "hardware": [], "device_mappings": { "left_motor_forward_input": 4, "left_motor_backward_input": 14, "right_motor_forward_input": 17, "right_motor_backward_input": 18, "left": 26, "right": 16, "fw": 21, "bw": 20 }, "device_kinds": { "left_motor_forward_input": "motor_driver_input", "left_motor_backward_input": "motor_driver_input", "right_motor_forward_input": "motor_driver_input", "right_motor_backward_input": "motor_driver_input", "left": "digital_in", "right": "digital_in", "fw": "digital_in", "bw": "digital_in" }, "device_classes": { "left_motor_forward_input": "Robot", "left_motor_backward_input": "Robot", "right_motor_forward_input": "Robot", "right_motor_backward_input": "Robot", "left": "Button", "right": "Button", "fw": "Button", "bw": "Button" }, "ops": [ { "device": "fw", "op": "when_pressed", "args": [], "kwargs": {} }, { "device": "fw", "op": "when_released", "args": [], "kwargs": {} }, { "device": "left", "op": "when_pressed", "args": [], "kwargs": {} }, { "device": "left", "op": "when_released", "args": [], "kwargs": {} }, { "device": "right", "op": "when_pressed", "args": [], "kwargs": {} }, { "device": "right", "op": "when_released", "args": [], "kwargs": {} }, { "device": "bw", "op": "when_pressed", "args": [], "kwargs": {} }, { "device": "bw", "op": "when_released", "args": [], "kwargs": {} } ], "rpigpio_calls": [], "prose_wiring_low_confidence": [], "conflicts": [], "usable_v1": false }, { "origin": "gpiozero", "id": "rgbled.py", "title": "Full color LED", "source": "https://github.com/gpiozero/gpiozero/blob/4e60a6a4e20b4a14416bbe77e28a54c670a199b3/docs/examples/rgbled.py", "remote_gpio": false, "hardware": [], "device_mappings": {}, "device_kinds": {}, "device_classes": {}, "ops": [], "rpigpio_calls": [], "prose_wiring_low_confidence": [], "conflicts": [], "usable_v1": false }, { "origin": "gpiozero", "id": "rgbled_pot_1.py", "title": "Full color LED controlled by 3 potentiometers", "source": "https://github.com/gpiozero/gpiozero/blob/4e60a6a4e20b4a14416bbe77e28a54c670a199b3/docs/examples/rgbled_pot_1.py", "remote_gpio": false, "hardware": [], "device_mappings": {}, "device_kinds": { "red_pot": "spi_adc", "green_pot": "spi_adc", "blue_pot": "spi_adc" }, "device_classes": {}, "ops": [], "rpigpio_calls": [], "prose_wiring_low_confidence": [], "conflicts": [], "usable_v1": false }, { "origin": "gpiozero", "id": "rgbled_pot_2.py", "title": "Full color LED controlled by 3 potentiometers", "source": "https://github.com/gpiozero/gpiozero/blob/4e60a6a4e20b4a14416bbe77e28a54c670a199b3/docs/examples/rgbled_pot_2.py", "remote_gpio": false, "hardware": [], "device_mappings": { "rgb_red": 2, "rgb_green": 3, "rgb_blue": 4 }, "device_kinds": { "rgb_red": "pwm_out", "rgb_green": "pwm_out", "rgb_blue": "pwm_out", "red_pot": "spi_adc", "green_pot": "spi_adc", "blue_pot": "spi_adc" }, "device_classes": { "rgb_red": "RGBLED", "rgb_green": "RGBLED", "rgb_blue": "RGBLED" }, "ops": [], "rpigpio_calls": [], "prose_wiring_low_confidence": [], "conflicts": [], "usable_v1": true }, { "origin": "gpiozero", "id": "robot_1.py", "title": "Robot", "source": "https://github.com/gpiozero/gpiozero/blob/4e60a6a4e20b4a14416bbe77e28a54c670a199b3/docs/examples/robot_1.py", "remote_gpio": false, "hardware": [], "device_mappings": { "left_motor_forward_input": 4, "left_motor_backward_input": 14, "right_motor_forward_input": 17, "right_motor_backward_input": 18 }, "device_kinds": { "left_motor_forward_input": "motor_driver_input", "left_motor_backward_input": "motor_driver_input", "right_motor_forward_input": "motor_driver_input", "right_motor_backward_input": "motor_driver_input" }, "device_classes": { "left_motor_forward_input": "Robot", "left_motor_backward_input": "Robot", "right_motor_forward_input": "Robot", "right_motor_backward_input": "Robot" }, "ops": [ { "device": "robot", "op": "forward", "args": [], "kwargs": {} }, { "device": "robot", "op": "right", "args": [], "kwargs": {} } ], "rpigpio_calls": [], "prose_wiring_low_confidence": [], "conflicts": [], "usable_v1": true }, { "origin": "gpiozero", "id": "robot_2.py", "title": "Robot", "source": "https://github.com/gpiozero/gpiozero/blob/4e60a6a4e20b4a14416bbe77e28a54c670a199b3/docs/examples/robot_2.py", "remote_gpio": false, "hardware": [], "device_mappings": { "distance_echo": 23, "distance_trigger": 24, "left_motor_forward_input": 4, "left_motor_backward_input": 14, "right_motor_forward_input": 17, "right_motor_backward_input": 18 }, "device_kinds": { "distance_echo": "digital_in", "distance_trigger": "digital_out", "left_motor_forward_input": "motor_driver_input", "left_motor_backward_input": "motor_driver_input", "right_motor_forward_input": "motor_driver_input", "right_motor_backward_input": "motor_driver_input" }, "device_classes": { "distance_echo": "DistanceSensor", "distance_trigger": "DistanceSensor", "left_motor_forward_input": "Robot", "left_motor_backward_input": "Robot", "right_motor_forward_input": "Robot", "right_motor_backward_input": "Robot" }, "ops": [ { "device": "sensor", "op": "when_in_range", "args": [], "kwargs": {} }, { "device": "sensor", "op": "when_out_of_range", "args": [], "kwargs": {} } ], "rpigpio_calls": [], "prose_wiring_low_confidence": [], "conflicts": [], "usable_v1": true }, { "origin": "gpiozero", "id": "robot_buttons_1.py", "title": "Button controlled robot", "source": "https://github.com/gpiozero/gpiozero/blob/4e60a6a4e20b4a14416bbe77e28a54c670a199b3/docs/examples/robot_buttons_1.py", "remote_gpio": false, "hardware": [], "device_mappings": { "left_motor_forward_input": 4, "left_motor_backward_input": 14, "right_motor_forward_input": 17, "right_motor_backward_input": 18, "left": 26, "right": 16, "fw": 21, "bw": 20 }, "device_kinds": { "left_motor_forward_input": "motor_driver_input", "left_motor_backward_input": "motor_driver_input", "right_motor_forward_input": "motor_driver_input", "right_motor_backward_input": "motor_driver_input", "left": "digital_in", "right": "digital_in", "fw": "digital_in", "bw": "digital_in" }, "device_classes": { "left_motor_forward_input": "Robot", "left_motor_backward_input": "Robot", "right_motor_forward_input": "Robot", "right_motor_backward_input": "Robot", "left": "Button", "right": "Button", "fw": "Button", "bw": "Button" }, "ops": [ { "device": "fw", "op": "when_pressed", "args": [], "kwargs": {} }, { "device": "fw", "op": "when_released", "args": [], "kwargs": {} }, { "device": "left", "op": "when_pressed", "args": [], "kwargs": {} }, { "device": "left", "op": "when_released", "args": [], "kwargs": {} }, { "device": "right", "op": "when_pressed", "args": [], "kwargs": {} }, { "device": "right", "op": "when_released", "args": [], "kwargs": {} }, { "device": "bw", "op": "when_pressed", "args": [], "kwargs": {} }, { "device": "bw", "op": "when_released", "args": [], "kwargs": {} } ], "rpigpio_calls": [], "prose_wiring_low_confidence": [], "conflicts": [], "usable_v1": true }, { "origin": "gpiozero", "id": "robot_buttons_2.py", "title": "Button controlled robot", "source": "https://github.com/gpiozero/gpiozero/blob/4e60a6a4e20b4a14416bbe77e28a54c670a199b3/docs/examples/robot_buttons_2.py", "remote_gpio": false, "hardware": [], "device_mappings": { "left_motor_forward_input": 17, "left_motor_backward_input": 18, "right_motor_forward_input": 22, "right_motor_backward_input": 23, "left": 2, "right": 3, "forward": 4, "backward": 5, "go": 6 }, "device_kinds": { "left_motor_forward_input": "motor_driver_input", "left_motor_backward_input": "motor_driver_input", "right_motor_forward_input": "motor_driver_input", "right_motor_backward_input": "motor_driver_input", "left": "digital_in", "right": "digital_in", "forward": "digital_in", "backward": "digital_in", "go": "digital_in" }, "device_classes": { "left_motor_forward_input": "Robot", "left_motor_backward_input": "Robot", "right_motor_forward_input": "Robot", "right_motor_backward_input": "Robot", "left": "Button", "right": "Button", "forward": "Button", "backward": "Button", "go": "Button" }, "ops": [ { "device": "go", "op": "when_pressed", "args": [], "kwargs": {} } ], "rpigpio_calls": [], "prose_wiring_low_confidence": [], "conflicts": [], "usable_v1": true }, { "origin": "gpiozero", "id": "robot_keyboard_1.py", "title": "Keyboard controlled robot", "source": "https://github.com/gpiozero/gpiozero/blob/4e60a6a4e20b4a14416bbe77e28a54c670a199b3/docs/examples/robot_keyboard_1.py", "remote_gpio": false, "hardware": [], "device_mappings": { "left_motor_forward_input": 4, "left_motor_backward_input": 14, "right_motor_forward_input": 17, "right_motor_backward_input": 18 }, "device_kinds": { "left_motor_forward_input": "motor_driver_input", "left_motor_backward_input": "motor_driver_input", "right_motor_forward_input": "motor_driver_input", "right_motor_backward_input": "motor_driver_input" }, "device_classes": { "left_motor_forward_input": "Robot", "left_motor_backward_input": "Robot", "right_motor_forward_input": "Robot", "right_motor_backward_input": "Robot" }, "ops": [ { "device": "robot", "op": "stop", "args": [], "kwargs": {} } ], "rpigpio_calls": [], "prose_wiring_low_confidence": [], "conflicts": [], "usable_v1": true }, { "origin": "gpiozero", "id": "robot_keyboard_2.py", "title": "Keyboard controlled robot", "source": "https://github.com/gpiozero/gpiozero/blob/4e60a6a4e20b4a14416bbe77e28a54c670a199b3/docs/examples/robot_keyboard_2.py", "remote_gpio": false, "hardware": [], "device_mappings": { "left_motor_forward_input": 4, "left_motor_backward_input": 14, "right_motor_forward_input": 17, "right_motor_backward_input": 18 }, "device_kinds": { "left_motor_forward_input": "motor_driver_input", "left_motor_backward_input": "motor_driver_input", "right_motor_forward_input": "motor_driver_input", "right_motor_backward_input": "motor_driver_input" }, "device_classes": { "left_motor_forward_input": "Robot", "left_motor_backward_input": "Robot", "right_motor_forward_input": "Robot", "right_motor_backward_input": "Robot" }, "ops": [ { "device": "robot", "op": "stop", "args": [], "kwargs": {} } ], "rpigpio_calls": [], "prose_wiring_low_confidence": [], "conflicts": [], "usable_v1": true }, { "origin": "gpiozero", "id": "robot_motion_1.py", "title": "Motion sensor robot", "source": "https://github.com/gpiozero/gpiozero/blob/4e60a6a4e20b4a14416bbe77e28a54c670a199b3/docs/examples/robot_motion_1.py", "remote_gpio": false, "hardware": [], "device_mappings": { "left_motor_forward_input": 4, "left_motor_backward_input": 14, "right_motor_forward_input": 17, "right_motor_backward_input": 18, "pir_sensor": 5 }, "device_kinds": { "left_motor_forward_input": "motor_driver_input", "left_motor_backward_input": "motor_driver_input", "right_motor_forward_input": "motor_driver_input", "right_motor_backward_input": "motor_driver_input", "pir_sensor": "digital_in" }, "device_classes": { "left_motor_forward_input": "Robot", "left_motor_backward_input": "Robot", "right_motor_forward_input": "Robot", "right_motor_backward_input": "Robot", "pir_sensor": "MotionSensor" }, "ops": [ { "device": "pir", "op": "when_motion", "args": [], "kwargs": {} }, { "device": "pir", "op": "when_no_motion", "args": [], "kwargs": {} } ], "rpigpio_calls": [], "prose_wiring_low_confidence": [], "conflicts": [], "usable_v1": true }, { "origin": "gpiozero", "id": "robot_motion_2.py", "title": "Motion sensor robot", "source": "https://github.com/gpiozero/gpiozero/blob/4e60a6a4e20b4a14416bbe77e28a54c670a199b3/docs/examples/robot_motion_2.py", "remote_gpio": false, "hardware": [], "device_mappings": { "left_motor_forward_input": 4, "left_motor_backward_input": 14, "right_motor_forward_input": 17, "right_motor_backward_input": 18, "pir_sensor": 5 }, "device_kinds": { "left_motor_forward_input": "motor_driver_input", "left_motor_backward_input": "motor_driver_input", "right_motor_forward_input": "motor_driver_input", "right_motor_backward_input": "motor_driver_input", "pir_sensor": "digital_in" }, "device_classes": { "left_motor_forward_input": "Robot", "left_motor_backward_input": "Robot", "right_motor_forward_input": "Robot", "right_motor_backward_input": "Robot", "pir_sensor": "MotionSensor" }, "ops": [], "rpigpio_calls": [], "prose_wiring_low_confidence": [], "conflicts": [], "usable_v1": true }, { "origin": "gpiozero", "id": "robot_pots_1.py", "title": "Robot controlled by 2 potentiometers", "source": "https://github.com/gpiozero/gpiozero/blob/4e60a6a4e20b4a14416bbe77e28a54c670a199b3/docs/examples/robot_pots_1.py", "remote_gpio": false, "hardware": [], "device_mappings": { "left_motor_forward_input": 4, "left_motor_backward_input": 14, "right_motor_forward_input": 17, "right_motor_backward_input": 18 }, "device_kinds": { "left_motor_forward_input": "motor_driver_input", "left_motor_backward_input": "motor_driver_input", "right_motor_forward_input": "motor_driver_input", "right_motor_backward_input": "motor_driver_input", "left_pot": "spi_adc", "right_pot": "spi_adc" }, "device_classes": { "left_motor_forward_input": "Robot", "left_motor_backward_input": "Robot", "right_motor_forward_input": "Robot", "right_motor_backward_input": "Robot" }, "ops": [], "rpigpio_calls": [], "prose_wiring_low_confidence": [], "conflicts": [], "usable_v1": true }, { "origin": "gpiozero", "id": "robot_pots_2.py", "title": "Robot controlled by 2 potentiometers", "source": "https://github.com/gpiozero/gpiozero/blob/4e60a6a4e20b4a14416bbe77e28a54c670a199b3/docs/examples/robot_pots_2.py", "remote_gpio": false, "hardware": [], "device_mappings": { "left_motor_forward_input": 4, "left_motor_backward_input": 14, "right_motor_forward_input": 17, "right_motor_backward_input": 18 }, "device_kinds": { "left_motor_forward_input": "motor_driver_input", "left_motor_backward_input": "motor_driver_input", "right_motor_forward_input": "motor_driver_input", "right_motor_backward_input": "motor_driver_input", "left_pot": "spi_adc", "right_pot": "spi_adc" }, "device_classes": { "left_motor_forward_input": "Robot", "left_motor_backward_input": "Robot", "right_motor_forward_input": "Robot", "right_motor_backward_input": "Robot" }, "ops": [], "rpigpio_calls": [], "prose_wiring_low_confidence": [], "conflicts": [], "usable_v1": true }, { "origin": "gpiozero", "id": "sense_hat_remote.py", "title": null, "source": "https://github.com/gpiozero/gpiozero/blob/4e60a6a4e20b4a14416bbe77e28a54c670a199b3/docs/examples/sense_hat_remote.py", "remote_gpio": true, "hardware": [], "device_mappings": { "pir_sensor": 4 }, "device_kinds": { "pir_sensor": "digital_in" }, "device_classes": { "pir_sensor": "MotionSensor" }, "ops": [ { "device": "pir", "op": "wait_for_motion", "args": [], "kwargs": {} } ], "rpigpio_calls": [], "prose_wiring_low_confidence": [], "conflicts": [], "usable_v1": false }, { "origin": "gpiozero", "id": "sense_hat_remote_2.py", "title": "Light sensor + Sense HAT", "source": "https://github.com/gpiozero/gpiozero/blob/4e60a6a4e20b4a14416bbe77e28a54c670a199b3/docs/examples/sense_hat_remote_2.py", "remote_gpio": true, "hardware": [], "device_mappings": { "light": 4 }, "device_kinds": { "light": "rc_timing_in" }, "device_classes": { "light": "LightSensor" }, "ops": [], "rpigpio_calls": [], "prose_wiring_low_confidence": [], "conflicts": [], "usable_v1": false }, { "origin": "gpiozero", "id": "servo_1.py", "title": "Servo", "source": "https://github.com/gpiozero/gpiozero/blob/4e60a6a4e20b4a14416bbe77e28a54c670a199b3/docs/examples/servo_1.py", "remote_gpio": false, "hardware": [], "device_mappings": { "servo": 17 }, "device_kinds": { "servo": "pwm_out" }, "device_classes": { "servo": "Servo" }, "ops": [ { "device": "servo", "op": "min", "args": [], "kwargs": {} }, { "device": "servo", "op": "mid", "args": [], "kwargs": {} }, { "device": "servo", "op": "max", "args": [], "kwargs": {} } ], "rpigpio_calls": [], "prose_wiring_low_confidence": [], "conflicts": [], "usable_v1": true }, { "origin": "gpiozero", "id": "servo_2.py", "title": "Servo", "source": "https://github.com/gpiozero/gpiozero/blob/4e60a6a4e20b4a14416bbe77e28a54c670a199b3/docs/examples/servo_2.py", "remote_gpio": false, "hardware": [], "device_mappings": { "servo": 17, "btn": 14 }, "device_kinds": { "servo": "pwm_out", "btn": "digital_in" }, "device_classes": { "servo": "Servo", "btn": "Button" }, "ops": [ { "device": "servo", "op": "min", "args": [], "kwargs": {} }, { "device": "btn", "op": "wait_for_press", "args": [], "kwargs": {} }, { "device": "servo", "op": "max", "args": [], "kwargs": {} }, { "device": "btn", "op": "wait_for_press", "args": [], "kwargs": {} } ], "rpigpio_calls": [], "prose_wiring_low_confidence": [], "conflicts": [], "usable_v1": true }, { "origin": "gpiozero", "id": "servo_sweep.py", "title": "Servo", "source": "https://github.com/gpiozero/gpiozero/blob/4e60a6a4e20b4a14416bbe77e28a54c670a199b3/docs/examples/servo_sweep.py", "remote_gpio": false, "hardware": [], "device_mappings": { "servo": 17 }, "device_kinds": { "servo": "pwm_out" }, "device_classes": { "servo": "Servo" }, "ops": [], "rpigpio_calls": [], "prose_wiring_low_confidence": [], "conflicts": [], "usable_v1": true }, { "origin": "gpiozero", "id": "sin_values.py", "title": null, "source": "https://github.com/gpiozero/gpiozero/blob/4e60a6a4e20b4a14416bbe77e28a54c670a199b3/docs/examples/sin_values.py", "remote_gpio": false, "hardware": [], "device_mappings": { "motor_forward_input": 2, "motor_backward_input": 3, "servo": 4, "buzzer": 5 }, "device_kinds": { "motor_forward_input": "motor_driver_input", "motor_backward_input": "motor_driver_input", "servo": "pwm_out", "buzzer": "pwm_out" }, "device_classes": { "motor_forward_input": "Motor", "motor_backward_input": "Motor", "servo": "Servo", "buzzer": "TonalBuzzer" }, "ops": [], "rpigpio_calls": [], "prose_wiring_low_confidence": [], "conflicts": [], "usable_v1": true }, { "origin": "gpiozero", "id": "source_value_processing.py", "title": null, "source": "https://github.com/gpiozero/gpiozero/blob/4e60a6a4e20b4a14416bbe77e28a54c670a199b3/docs/examples/source_value_processing.py", "remote_gpio": false, "hardware": [], "device_mappings": { "led": 4, "btn": 17 }, "device_kinds": { "led": "digital_out", "btn": "digital_in" }, "device_classes": { "led": "LED", "btn": "Button" }, "ops": [], "rpigpio_calls": [], "prose_wiring_low_confidence": [], "conflicts": [], "usable_v1": true }, { "origin": "gpiozero", "id": "thermometer.py", "title": "Measure temperature with an ADC", "source": "https://github.com/gpiozero/gpiozero/blob/4e60a6a4e20b4a14416bbe77e28a54c670a199b3/docs/examples/thermometer.py", "remote_gpio": false, "hardware": [], "device_mappings": {}, "device_kinds": { "adc": "spi_adc" }, "device_classes": {}, "ops": [], "rpigpio_calls": [], "prose_wiring_low_confidence": [], "conflicts": [], "usable_v1": false }, { "origin": "gpiozero", "id": "traffic_lights_1.py", "title": "Traffic Lights", "source": "https://github.com/gpiozero/gpiozero/blob/4e60a6a4e20b4a14416bbe77e28a54c670a199b3/docs/examples/traffic_lights_1.py", "remote_gpio": false, "hardware": [], "device_mappings": { "red_led": 2, "amber_led": 3, "green_led": 4 }, "device_kinds": { "red_led": "digital_out", "amber_led": "digital_out", "green_led": "digital_out" }, "device_classes": { "red_led": "TrafficLights", "amber_led": "TrafficLights", "green_led": "TrafficLights" }, "ops": [], "rpigpio_calls": [], "prose_wiring_low_confidence": [], "conflicts": [], "usable_v1": true }, { "origin": "gpiozero", "id": "traffic_lights_2.py", "title": "Traffic Lights", "source": "https://github.com/gpiozero/gpiozero/blob/4e60a6a4e20b4a14416bbe77e28a54c670a199b3/docs/examples/traffic_lights_2.py", "remote_gpio": false, "hardware": [], "device_mappings": { "red_led": 2, "amber_led": 3, "green_led": 4 }, "device_kinds": { "red_led": "digital_out", "amber_led": "digital_out", "green_led": "digital_out" }, "device_classes": { "red_led": "TrafficLights", "amber_led": "TrafficLights", "green_led": "TrafficLights" }, "ops": [], "rpigpio_calls": [], "prose_wiring_low_confidence": [], "conflicts": [], "usable_v1": true }, { "origin": "gpiozero", "id": "traffic_lights_3.py", "title": "Traffic Lights", "source": "https://github.com/gpiozero/gpiozero/blob/4e60a6a4e20b4a14416bbe77e28a54c670a199b3/docs/examples/traffic_lights_3.py", "remote_gpio": false, "hardware": [], "device_mappings": { "red_led": 2, "amber_led": 3, "green_led": 4 }, "device_kinds": { "red_led": "digital_out", "amber_led": "digital_out", "green_led": "digital_out" }, "device_classes": { "red_led": "LED", "amber_led": "LED", "green_led": "LED" }, "ops": [ { "device": "green", "op": "on", "args": [], "kwargs": {} }, { "device": "amber", "op": "off", "args": [], "kwargs": {} }, { "device": "red", "op": "off", "args": [], "kwargs": {} }, { "device": "green", "op": "off", "args": [], "kwargs": {} }, { "device": "amber", "op": "on", "args": [], "kwargs": {} }, { "device": "amber", "op": "off", "args": [], "kwargs": {} }, { "device": "red", "op": "on", "args": [], "kwargs": {} }, { "device": "amber", "op": "on", "args": [], "kwargs": {} }, { "device": "green", "op": "on", "args": [], "kwargs": {} }, { "device": "amber", "op": "off", "args": [], "kwargs": {} }, { "device": "red", "op": "off", "args": [], "kwargs": {} } ], "rpigpio_calls": [], "prose_wiring_low_confidence": [], "conflicts": [], "usable_v1": true }, { "origin": "gpiozero", "id": "whos_home_leds.py", "title": "Who's home indicator", "source": "https://github.com/gpiozero/gpiozero/blob/4e60a6a4e20b4a14416bbe77e28a54c670a199b3/docs/examples/whos_home_leds.py", "remote_gpio": false, "hardware": [], "device_mappings": {}, "device_kinds": {}, "device_classes": {}, "ops": [], "rpigpio_calls": [], "prose_wiring_low_confidence": [], "conflicts": [], "usable_v1": false }, { "origin": "raspberrypilearning", "id": "balloon-pi-tay-popper", "title": "Balloon Pi-tay Popper", "source": "https://github.com/raspberrypilearning/balloon-pi-tay-popper", "remote_gpio": false, "hardware": [ "1 x Solderless breadboard", "3 (or more) x Pin-to-socket jumper leads", "4 (or more) x Pin-to-pin jumper leads", "1 x Tactile button", "1 x Battery snap", "2-core speaker cable (2m strip per balloon)", "Some 12Ω resistors (1 per balloon)", "Some 330Ω resistors (1 per balloon)", "1 (or more) x BC635 transistors", "1 x 9V battery" ], "device_mappings": { "button": 14, "balloon": 2 }, "device_kinds": { "button": "digital_in", "balloon": "digital_out" }, "device_classes": { "button": "Button", "balloon": "OutputDevice" }, "ops": [], "rpigpio_calls": [], "prose_wiring_low_confidence": [ { "device": "button", "gpio": 14, "found_in": "worksheet.md" } ], "conflicts": [], "usable_v1": true }, { "origin": "raspberrypilearning", "id": "build-a-buggy", "title": "Build a robot buggy", "source": "https://github.com/raspberrypilearning/build-a-buggy", "remote_gpio": false, "hardware": [], "device_mappings": { "left_motor_forward_input": 7, "left_motor_backward_input": 8, "right_motor_forward_input": 9, "right_motor_backward_input": 10, "line": 18 }, "device_kinds": { "left_motor_forward_input": "motor_driver_input", "left_motor_backward_input": "motor_driver_input", "right_motor_forward_input": "motor_driver_input", "right_motor_backward_input": "motor_driver_input", "line": "digital_in" }, "device_classes": { "left_motor_forward_input": "Robot", "left_motor_backward_input": "Robot", "right_motor_forward_input": "Robot", "right_motor_backward_input": "Robot", "line": "LineSensor" }, "ops": [ { "device": "robot", "op": "stop", "args": [] }, { "device": "robot", "op": "forward", "args": [ null ] }, { "device": "robot", "op": "stop", "args": [] }, { "device": "robot", "op": "right", "args": [] }, { "device": "robot", "op": "forward", "args": [ null ] }, { "device": "robot", "op": "stop", "args": [] }, { "device": "robot", "op": "right", "args": [ null ] }, { "device": "robot", "op": "stop", "args": [] }, { "device": "robot", "op": "left", "args": [ null ] }, { "device": "robot", "op": "stop", "args": [] }, { "device": "robot", "op": "stop", "args": [] }, { "device": "robot", "op": "stop", "args": [] }, { "device": "robot", "op": "forward", "args": [] }, { "device": "robot", "op": "stop", "args": [] }, { "device": "robot", "op": "right", "args": [] }, { "device": "robot", "op": "stop", "args": [] }, { "device": "robot", "op": "forward", "args": [] }, { "device": "robot", "op": "stop", "args": [] }, { "device": "robot", "op": "right", "args": [] }, { "device": "robot", "op": "stop", "args": [] } ], "rpigpio_calls": [], "prose_wiring_low_confidence": [], "conflicts": [], "usable_v1": true }, { "origin": "raspberrypilearning", "id": "build-a-robot-buggy", "title": "build-a-robot-buggy", "source": "https://github.com/raspberrypilearning/build-a-robot-buggy", "remote_gpio": false, "hardware": [ "Raspberry Pi camera module", "1 x Solderless breadboard", "2 x Male-to-female jumper leads", "1 x Tactile button" ], "device_mappings": { "left_motor_forward_input": 9, "left_motor_backward_input": 10, "right_motor_forward_input": 7, "right_motor_backward_input": 8, "line": 18, "distance_echo": 17, "distance_trigger": 4 }, "device_kinds": { "left_motor_forward_input": "motor_driver_input", "left_motor_backward_input": "motor_driver_input", "right_motor_forward_input": "motor_driver_input", "right_motor_backward_input": "motor_driver_input", "line": "digital_in", "distance_echo": "digital_in", "distance_trigger": "digital_out" }, "device_classes": { "left_motor_forward_input": "Robot", "left_motor_backward_input": "Robot", "right_motor_forward_input": "Robot", "right_motor_backward_input": "Robot", "line": "LineSensor", "distance_echo": "DistanceSensor", "distance_trigger": "DistanceSensor" }, "ops": [ { "device": "robot", "op": "stop", "args": [] }, { "device": "robot", "op": "forward", "args": [ null ] }, { "device": "robot", "op": "stop", "args": [] }, { "device": "robot", "op": "right", "args": [] }, { "device": "robot", "op": "forward", "args": [ null ] }, { "device": "robot", "op": "stop", "args": [] }, { "device": "robot", "op": "right", "args": [ null ] }, { "device": "robot", "op": "stop", "args": [] }, { "device": "robot", "op": "left", "args": [ null ] }, { "device": "robot", "op": "stop", "args": [] }, { "device": "robot", "op": "stop", "args": [] }, { "device": "robot", "op": "stop", "args": [] }, { "device": "remy", "op": "left", "args": [] }, { "device": "remy", "op": "left", "args": [] }, { "device": "remy", "op": "right", "args": [] }, { "device": "remy", "op": "right", "args": [] }, { "device": "remy", "op": "forward", "args": [] }, { "device": "remy", "op": "stop", "args": [] }, { "device": "robot", "op": "forward", "args": [ null ] }, { "device": "robot", "op": "stop", "args": [] }, { "device": "robot", "op": "right", "args": [ null ] }, { "device": "robot", "op": "stop", "args": [] }, { "device": "robot", "op": "left", "args": [ null ] }, { "device": "robot", "op": "stop", "args": [] }, { "device": "robot", "op": "stop", "args": [] }, { "device": "robot", "op": "stop", "args": [] }, { "device": "robot", "op": "forward", "args": [ null ] }, { "device": "robot", "op": "stop", "args": [] }, { "device": "robot", "op": "right", "args": [ null ] }, { "device": "robot", "op": "stop", "args": [] }, { "device": "robot", "op": "left", "args": [ null ] }, { "device": "robot", "op": "stop", "args": [] }, { "device": "robot", "op": "stop", "args": [] }, { "device": "robot", "op": "stop", "args": [] } ], "rpigpio_calls": [], "prose_wiring_low_confidence": [], "conflicts": [], "usable_v1": true }, { "origin": "raspberrypilearning", "id": "build-your-own-weather-station", "title": "Build your own weather station", "source": "https://github.com/raspberrypilearning/build-your-own-weather-station", "remote_gpio": false, "hardware": [ "Availability", "Cost", "Linux/Python support", "Reliability", "Accuracy", "Ease of use" ], "device_mappings": { "rain_sensor": 6, "wind_speed_sensor": 5 }, "device_kinds": { "adc": "spi_adc", "rain_sensor": "digital_in", "wind_speed_sensor": "digital_in" }, "device_classes": { "rain_sensor": "Button", "wind_speed_sensor": "Button" }, "ops": [], "rpigpio_calls": [], "prose_wiring_low_confidence": [ { "device": "button", "gpio": 5, "found_in": "en/step_6.md" }, { "device": "button", "gpio": 6, "found_in": "en/step_9.md" } ], "conflicts": [], "usable_v1": true }, { "origin": "raspberrypilearning", "id": "button-switch-scratch-pi", "title": "Button switches, Scratch 3, and Raspberry Pi 4", "source": "https://github.com/raspberrypilearning/button-switch-scratch-pi", "remote_gpio": false, "hardware": [], "device_mappings": {}, "device_kinds": {}, "device_classes": {}, "ops": [], "rpigpio_calls": [], "prose_wiring_low_confidence": [ { "device": "led", "gpio": 4, "found_in": "en/step_5.md" }, { "device": "button", "gpio": 2, "found_in": "en/step_7.md" } ], "conflicts": [], "usable_v1": false }, { "origin": "raspberrypilearning", "id": "camjam-kit-1", "title": "camjam-kit-1", "source": "https://github.com/raspberrypilearning/camjam-kit-1", "remote_gpio": false, "hardware": [ "1 x Tactile push button", "1 x Red LED", "1 x Amber LED", "1 x Green LED", "1 x Buzzer", "1 x Full-size breadboard", "3 x 330R resistors", "6 x Male-to-female jumper wires", "1 x Male-to-male jumper wire" ], "device_mappings": { "button": 21, "red_led": 25, "amber_led": 8, "green_led": 7, "buzzer": 15 }, "device_kinds": { "button": "digital_in", "red_led": "digital_out", "amber_led": "digital_out", "green_led": "digital_out", "buzzer": "digital_out" }, "device_classes": { "button": "Button", "red_led": "TrafficLights", "amber_led": "TrafficLights", "green_led": "TrafficLights", "buzzer": "Buzzer" }, "ops": [ { "device": "button", "op": "wait_for_press", "args": [] }, { "device": "lights", "op": "off", "args": [] }, { "device": "buzzer", "op": "on", "args": [] }, { "device": "button", "op": "wait_for_release", "args": [] }, { "device": "lights", "op": "on", "args": [] }, { "device": "buzzer", "op": "off", "args": [] } ], "rpigpio_calls": [], "prose_wiring_low_confidence": [], "conflicts": [], "usable_v1": true }, { "origin": "raspberrypilearning", "id": "getting-started-with-gpio-zero", "title": "getting-started-with-gpio-zero", "source": "https://github.com/raspberrypilearning/getting-started-with-gpio-zero", "remote_gpio": false, "hardware": [ "1 x Solderless breadboard", "2 x Male-to-female jumper leads", "1 x Tactile button", "1 x LED" ], "device_mappings": {}, "device_kinds": {}, "device_classes": {}, "ops": [], "rpigpio_calls": [], "prose_wiring_low_confidence": [ { "device": "led", "gpio": 17, "found_in": "worksheet.md" }, { "device": "button", "gpio": 2, "found_in": "worksheet.md" } ], "conflicts": [], "usable_v1": false }, { "origin": "raspberrypilearning", "id": "gpio-music-box", "title": "GPIO music box", "source": "https://github.com/raspberrypilearning/gpio-music-box", "remote_gpio": false, "hardware": [ "1 x Full-sized breadboard", "3 (or more) x Male-to-female jumper leads", "2 (or more) x Male-to-male jumper leads", "2 (or more) x Tactile buttons", "Headphones or a speaker", "A Raspberry Pi computer", "A breadboard", "Four (4) tactile switches (to make buttons)", "Five (5) pin-to-socket jumper leads", "Four (4) pin-to-pin jumper leads", "Speakers or headphones" ], "device_mappings": { "drum_button": 4, "cymbal_button": 17, "snare_button": 27, "bell_button": 10 }, "device_kinds": { "drum_button": "digital_in", "cymbal_button": "digital_in", "snare_button": "digital_in", "bell_button": "digital_in" }, "device_classes": { "drum_button": "Button", "cymbal_button": "Button", "snare_button": "Button", "bell_button": "Button" }, "ops": [], "rpigpio_calls": [], "prose_wiring_low_confidence": [ { "device": "button", "gpio": 2, "found_in": "worksheet.md" }, { "device": "button", "gpio": 3, "found_in": "worksheet.md" } ], "conflicts": [], "usable_v1": true }, { "origin": "raspberrypilearning", "id": "grandpa-scarer", "title": "Grandpa Scarer", "source": "https://github.com/raspberrypilearning/grandpa-scarer", "remote_gpio": false, "hardware": [ "1 x Big Dome Push button", "1 x Servo", "1 x Speaker", "1 x LED", "1 x 330 Ohm resistor" ], "device_mappings": {}, "device_kinds": {}, "device_classes": {}, "ops": [], "rpigpio_calls": [ { "pin": 11, "setup": "OUT", "found_in": "code/grandpa_scarer.py" }, { "pin": 16, "setup": "OUT", "found_in": "code/grandpa_scarer.py" }, { "pin": 18, "setup": "IN", "found_in": "code/grandpa_scarer.py" }, { "pin": 11, "setup": "OUT", "found_in": "en/resources/grandpa_scarer.py" }, { "pin": 16, "setup": "OUT", "found_in": "en/resources/grandpa_scarer.py" }, { "pin": 18, "setup": "IN", "found_in": "en/resources/grandpa_scarer.py" }, { "pin": 18, "setup": "IN", "found_in": "en/step_5.md" }, { "pin": 11, "setup": "OUT", "found_in": "en/step_8.md" }, { "pin": 16, "setup": "OUT", "found_in": "en/step_8.md" }, { "pin": 18, "setup": "IN", "found_in": "en/step_8.md" } ], "prose_wiring_low_confidence": [ { "device": "servo", "gpio": 9, "found_in": "worksheet.md" }, { "device": "servo", "gpio": 2, "found_in": "worksheet.md" }, { "device": "servo", "gpio": 11, "found_in": "worksheet.md" }, { "device": "button", "gpio": 6, "found_in": "worksheet.md" }, { "device": "button", "gpio": 18, "found_in": "worksheet.md" } ], "conflicts": [], "usable_v1": false }, { "origin": "raspberrypilearning", "id": "interactive-traffic-lights-python", "title": "Interactive Traffic Lights with Python", "source": "https://github.com/raspberrypilearning/interactive-traffic-lights-python", "remote_gpio": false, "hardware": [], "device_mappings": { "red_led": 25, "button": 21, "amber_led": 28, "green_led": 27, "buzzer": 15 }, "device_kinds": { "red_led": "digital_out", "button": "digital_in", "amber_led": "digital_out", "green_led": "digital_out", "buzzer": "digital_out" }, "device_classes": { "red_led": "TrafficLights", "button": "Button", "amber_led": "TrafficLights", "green_led": "TrafficLights", "buzzer": "Buzzer" }, "ops": [ { "device": "red", "op": "on", "args": [] }, { "device": "red", "op": "off", "args": [] }, { "device": "button", "op": "wait_for_press", "args": [] }, { "device": "lights", "op": "on", "args": [] }, { "device": "button", "op": "wait_for_release", "args": [] }, { "device": "lights", "op": "off", "args": [] }, { "device": "buzzer", "op": "on", "args": [] }, { "device": "buzzer", "op": "off", "args": [] } ], "rpigpio_calls": [], "prose_wiring_low_confidence": [], "conflicts": [ "amber: pin 28 is not GPIO0-27", "lights: pin 28 is not GPIO0-27" ], "usable_v1": false }, { "origin": "raspberrypilearning", "id": "laser-tripwire", "title": "A Raspberry Pi laser tripwire", "source": "https://github.com/raspberrypilearning/laser-tripwire", "remote_gpio": false, "hardware": [ "1 x Solderless breadboard", "5 x Male-to-female jumper leads", "5 x Female-to-female jumper leads", "1 x Buzzer", "1 x 1μF Capacitor", "1 x Light-dependent resistor (LDR)" ], "device_mappings": { "light": 4, "buzzer": 26 }, "device_kinds": { "light": "rc_timing_in", "buzzer": "digital_out" }, "device_classes": { "light": "LightSensor", "buzzer": "LED" }, "ops": [ { "device": "buzzer", "op": "off", "args": [] }, { "device": "buzzer", "op": "on", "args": [] }, { "device": "buzzer", "op": "off", "args": [] }, { "device": "buzzer", "op": "on", "args": [] }, { "device": "buzzer", "op": "off", "args": [] }, { "device": "buzzer", "op": "on", "args": [] } ], "rpigpio_calls": [], "prose_wiring_low_confidence": [ { "device": "buzzer", "gpio": 17, "found_in": "en/step_3.md" } ], "conflicts": [], "usable_v1": true }, { "origin": "raspberrypilearning", "id": "leds-buzzers-scratch-games", "title": "LEDs, buzzers and Scratch games", "source": "https://github.com/raspberrypilearning/leds-buzzers-scratch-games", "remote_gpio": false, "hardware": [ "A Raspberry Pi 4", "LEDs", "47Ω (Ohm) to 330Ω resistors", "A buzzer", "A breadboard", "Pin-to-socket jumper leads", "Socket-to-socket jumper leads" ], "device_mappings": {}, "device_kinds": {}, "device_classes": {}, "ops": [], "rpigpio_calls": [], "prose_wiring_low_confidence": [ { "device": "led", "gpio": 23, "found_in": "en/step_4.md" }, { "device": "led", "gpio": 17, "found_in": "en/step_5.md" }, { "device": "buzzer", "gpio": 17, "found_in": "en/step_6.md" }, { "device": "red led", "gpio": 17, "found_in": "en/step_9.md" }, { "device": "yellow led", "gpio": 23, "found_in": "en/step_9.md" }, { "device": "buzzer", "gpio": 25, "found_in": "en/step_9.md" } ], "conflicts": [], "usable_v1": false }, { "origin": "raspberrypilearning", "id": "lego-robot-car", "title": "LEGO® remote controlled car", "source": "https://github.com/raspberrypilearning/lego-robot-car", "remote_gpio": false, "hardware": [], "device_mappings": { "led_left": 20, "led_right": 21 }, "device_kinds": { "led_left": "digital_out", "led_right": "digital_out" }, "device_classes": { "led_left": "LED", "led_right": "LED" }, "ops": [ { "device": "motor_left", "op": "stop", "args": [] }, { "device": "motor_right", "op": "stop", "args": [] }, { "device": "led_right", "op": "on", "args": [] }, { "device": "led_left", "op": "on", "args": [] }, { "device": "led_right", "op": "off", "args": [] }, { "device": "led_left", "op": "off", "args": [] }, { "device": "led_right", "op": "on", "args": [ 0.2 ] }, { "device": "led_left", "op": "on", "args": [ 0.2 ] }, { "device": "led_right", "op": "blink", "args": [ 0.2 ] }, { "device": "led_left", "op": "off", "args": [] }, { "device": "led_right", "op": "off", "args": [] }, { "device": "led_left", "op": "blink", "args": [ 0.2 ] }, { "device": "motor_left", "op": "stop", "args": [] }, { "device": "motor_right", "op": "stop", "args": [] }, { "device": "motor_left", "op": "stop", "args": [] }, { "device": "motor_right", "op": "stop", "args": [] } ], "rpigpio_calls": [], "prose_wiring_low_confidence": [], "conflicts": [], "usable_v1": true }, { "origin": "raspberrypilearning", "id": "lego-robot-face", "title": "LEGO® robot face", "source": "https://github.com/raspberrypilearning/lego-robot-face", "remote_gpio": false, "hardware": [], "device_mappings": {}, "device_kinds": {}, "device_classes": {}, "ops": [], "rpigpio_calls": [], "prose_wiring_low_confidence": [], "conflicts": [], "usable_v1": false }, { "origin": "raspberrypilearning", "id": "morse-code-virtual-radio", "title": "morse-code-virtual-radio", "source": "https://github.com/raspberrypilearning/morse-code-virtual-radio", "remote_gpio": false, "hardware": [ "1 x Morse Code key", "2 (or more) x Male-to-female jumper wires", "Headphones or speakers" ], "device_mappings": {}, "device_kinds": {}, "device_classes": {}, "ops": [ { "device": "key", "op": "wait_for_press", "args": [] }, { "device": "key", "op": "wait_for_release", "args": [] } ], "rpigpio_calls": [], "prose_wiring_low_confidence": [], "conflicts": [], "usable_v1": false }, { "origin": "raspberrypilearning", "id": "parent-detector", "title": "The parent detector", "source": "https://github.com/raspberrypilearning/parent-detector", "remote_gpio": false, "hardware": [ "Raspberry Pi camera module", "1 x PIR motion sensor", "3 x Female-to-female jumper leads", "A Raspberry Pi", "Raspberry Pi Camera", "PIR motion sensor", "3 or more socket-to-socket jumper wires" ], "device_mappings": { "pir_sensor": 4 }, "device_kinds": { "pir_sensor": "digital_in" }, "device_classes": { "pir_sensor": "MotionSensor" }, "ops": [ { "device": "pir", "op": "wait_for_motion", "args": [] }, { "device": "pir", "op": "wait_for_no_motion", "args": [] }, { "device": "pir", "op": "wait_for_motion", "args": [] }, { "device": "pir", "op": "wait_for_motion", "args": [] } ], "rpigpio_calls": [], "prose_wiring_low_confidence": [ { "device": "pir sensor", "gpio": 4, "found_in": "en/step_4.md" } ], "conflicts": [], "usable_v1": true }, { "origin": "raspberrypilearning", "id": "physical-computing", "title": "Physical Computing with Python", "source": "https://github.com/raspberrypilearning/physical-computing", "remote_gpio": false, "hardware": [], "device_mappings": { "button": 2, "buzzer": 17, "led": 17, "ldr": 4, "motor_forward_input": 17, "motor_backward_input": 27, "red_led": 25, "amber_led": 8, "green_led": 7, "distance_echo": 17, "distance_trigger": 4, "pir_sensor": 4 }, "device_kinds": { "button": "digital_in", "buzzer": "digital_out", "led": "digital_out", "ldr": "rc_timing_in", "motor_forward_input": "motor_driver_input", "motor_backward_input": "motor_driver_input", "red_led": "digital_out", "amber_led": "digital_out", "green_led": "digital_out", "distance_echo": "digital_in", "distance_trigger": "digital_out", "pir_sensor": "digital_in" }, "device_classes": { "button": "Button", "buzzer": "Buzzer", "led": "LED", "ldr": "LightSensor", "motor_forward_input": "Motor", "motor_backward_input": "Motor", "red_led": "TrafficLights", "amber_led": "TrafficLights", "green_led": "TrafficLights", "distance_echo": "DistanceSensor", "distance_trigger": "DistanceSensor", "pir_sensor": "MotionSensor" }, "ops": [ { "device": "button", "op": "wait_for_press", "args": [] }, { "device": "robot", "op": "forward", "args": [] }, { "device": "robot", "op": "right", "args": [] }, { "device": "robot", "op": "backward", "args": [] }, { "device": "robot", "op": "left", "args": [] }, { "device": "robot", "op": "stop", "args": [] }, { "device": "led", "op": "on", "args": [] }, { "device": "led", "op": "off", "args": [] }, { "device": "button", "op": "wait_for_press", "args": [] }, { "device": "led", "op": "on", "args": [] }, { "device": "led", "op": "off", "args": [] }, { "device": "led", "op": "on", "args": [] }, { "device": "button", "op": "wait_for_press", "args": [] }, { "device": "led", "op": "toggle", "args": [] }, { "device": "motor1", "op": "forward", "args": [] }, { "device": "motor2", "op": "forward", "args": [] }, { "device": "button", "op": "wait_for_press", "args": [] }, { "device": "button", "op": "wait_for_press", "args": [] }, { "device": "lights", "op": "off", "args": [] }, { "device": "pir", "op": "wait_for_motion", "args": [] }, { "device": "pir", "op": "wait_for_no_motion", "args": [] } ], "rpigpio_calls": [], "prose_wiring_low_confidence": [ { "device": "led", "gpio": 17, "found_in": "en/step_3.md" }, { "device": "button", "gpio": 2, "found_in": "en/step_6.md" } ], "conflicts": [ "two devices share one GPIO" ], "usable_v1": false }, { "origin": "raspberrypilearning", "id": "physical-computing-with-python", "title": "physical-computing-with-python", "source": "https://github.com/raspberrypilearning/physical-computing-with-python", "remote_gpio": false, "hardware": [ "1 x Solderless breadboard", "Male-to-female jumper leads", "Female-to-female jumper leads", "Male-to-male jumper leads", "1 x Tactile button", "3 x LEDs", "Ultrasonic distance sensor", "Passive infrared motion sensor", "Light dependent resistor", "2 x 5V Micro Metal Gearmotor", "3 x 330Ω resistors", "470Ω resistor", "1 x 1μF Capacitor", "Buzzer", "motor controller", "battery pack" ], "device_mappings": { "pir_sensor": 4 }, "device_kinds": { "pir_sensor": "digital_in" }, "device_classes": { "pir_sensor": "MotionSensor" }, "ops": [ { "device": "pir", "op": "wait_for_motion", "args": [] }, { "device": "pir", "op": "wait_for_no_motion", "args": [] } ], "rpigpio_calls": [], "prose_wiring_low_confidence": [ { "device": "led", "gpio": 17, "found_in": "worksheet.md" }, { "device": "button", "gpio": 2, "found_in": "worksheet.md" } ], "conflicts": [], "usable_v1": true }, { "origin": "raspberrypilearning", "id": "physical-computing-with-scratch", "title": "Physical Computing With Scratch", "source": "https://github.com/raspberrypilearning/physical-computing-with-scratch", "remote_gpio": false, "hardware": [ "1 x Solderless breadboard", "4 x Male-to-female jumper leads", "1 x Tactile push button", "1 x LED", "1 x PIR sensor", "1 x Buzzer", "1 x 330 Ohm resistor", "A Raspberry Pi 4", "An LED", "A 47 - 330 ohm resistor", "A tactile button", "A buzzer", "A PIR motion sensor", "Male to Female jumper leads", "Female to Female jumper leads" ], "device_mappings": {}, "device_kinds": {}, "device_classes": {}, "ops": [], "rpigpio_calls": [], "prose_wiring_low_confidence": [ { "device": "led", "gpio": 17, "found_in": "worksheet.md" }, { "device": "pir sensor", "gpio": 4, "found_in": "pir.md" } ], "conflicts": [], "usable_v1": false }, { "origin": "raspberrypilearning", "id": "push-button-stop-motion", "title": "Push Button Stop Motion", "source": "https://github.com/raspberrypilearning/push-button-stop-motion", "remote_gpio": false, "hardware": [ "Raspberry Pi camera module", "1 x Full size breadboard", "2 x Pin-socket jumper leads", "1 x Tactile button" ], "device_mappings": { "button": 17 }, "device_kinds": { "button": "digital_in" }, "device_classes": { "button": "Button" }, "ops": [ { "device": "button", "op": "wait_for_press", "args": [] }, { "device": "button", "op": "wait_for_press", "args": [] } ], "rpigpio_calls": [], "prose_wiring_low_confidence": [ { "device": "button", "gpio": 17, "found_in": "en/step_4.md" } ], "conflicts": [], "usable_v1": true }, { "origin": "raspberrypilearning", "id": "python-picamera-setup", "title": "Python Picamera Setup", "source": "https://github.com/raspberrypilearning/python-picamera-setup", "remote_gpio": false, "hardware": [ "Raspberry Pi Camera Module" ], "device_mappings": {}, "device_kinds": {}, "device_classes": {}, "ops": [], "rpigpio_calls": [ { "pin": 17, "setup": "IN", "found_in": "en/step_3.md" }, { "pin": 17, "setup": "IN", "found_in": "worksheet.md" }, { "pin": 17, "setup": "IN", "found_in": "worksheet.md" }, { "pin": 17, "setup": "IN", "found_in": "worksheet.md" }, { "pin": 17, "setup": "IN", "found_in": "worksheet.md" }, { "pin": 17, "setup": "IN", "found_in": "worksheet.md" } ], "prose_wiring_low_confidence": [], "conflicts": [], "usable_v1": false }, { "origin": "raspberrypilearning", "id": "python-quick-reaction-game", "title": "Python Quick Reaction Game", "source": "https://github.com/raspberrypilearning/python-quick-reaction-game", "remote_gpio": false, "hardware": [ "1 x Breadboard", "1 x LED", "1 x 330 ohm Resistor", "4 x Male-to-female jumper wires", "2 x Male-to-male jumper wires", "2 x Tactile push buttons" ], "device_mappings": { "led": 4, "right_button": 15, "left_button": 14 }, "device_kinds": { "led": "digital_out", "right_button": "digital_in", "left_button": "digital_in" }, "device_classes": { "led": "LED", "right_button": "Button", "left_button": "Button" }, "ops": [ { "device": "led", "op": "on", "args": [] }, { "device": "led", "op": "off", "args": [] }, { "device": "led", "op": "on", "args": [] }, { "device": "led", "op": "off", "args": [] }, { "device": "led", "op": "on", "args": [] }, { "device": "led", "op": "off", "args": [] }, { "device": "led", "op": "on", "args": [] }, { "device": "led", "op": "off", "args": [] }, { "device": "led", "op": "on", "args": [] }, { "device": "led", "op": "off", "args": [] }, { "device": "led", "op": "on", "args": [] }, { "device": "led", "op": "off", "args": [] }, { "device": "led", "op": "on", "args": [] }, { "device": "led", "op": "off", "args": [] }, { "device": "led", "op": "on", "args": [] }, { "device": "led", "op": "off", "args": [] }, { "device": "led", "op": "on", "args": [] }, { "device": "led", "op": "off", "args": [] }, { "device": "led", "op": "on", "args": [] }, { "device": "led", "op": "off", "args": [] }, { "device": "led", "op": "on", "args": [] }, { "device": "led", "op": "off", "args": [] } ], "rpigpio_calls": [], "prose_wiring_low_confidence": [ { "device": "button", "gpio": 15, "found_in": "worksheet.md" } ], "conflicts": [], "usable_v1": true }, { "origin": "raspberrypilearning", "id": "robo-butler", "title": "robo-butler", "source": "https://github.com/raspberrypilearning/robo-butler", "remote_gpio": false, "hardware": [ "1 x Robot chassis", "1 x Motor controller board", "1 x Nintendo Wiimote", "1 x Bluetooth dongle", "1 x USB power pack" ], "device_mappings": {}, "device_kinds": {}, "device_classes": {}, "ops": [], "rpigpio_calls": [], "prose_wiring_low_confidence": [ { "device": "motor", "gpio": 17, "found_in": "worksheet.md" } ], "conflicts": [], "usable_v1": false }, { "origin": "raspberrypilearning", "id": "rpi-python-function-calls-with-buttons", "title": "Triggering functions with buttons", "source": "https://github.com/raspberrypilearning/rpi-python-function-calls-with-buttons", "remote_gpio": false, "hardware": [], "device_mappings": {}, "device_kinds": {}, "device_classes": {}, "ops": [], "rpigpio_calls": [], "prose_wiring_low_confidence": [ { "device": "button", "gpio": 17, "found_in": "en/step_1.md" }, { "device": "button", "gpio": 4, "found_in": "en/step_1.md" } ], "conflicts": [], "usable_v1": false }, { "origin": "raspberrypilearning", "id": "rpi-python-motor-controller-control", "title": "Driving motors with a motor controller board", "source": "https://github.com/raspberrypilearning/rpi-python-motor-controller-control", "remote_gpio": false, "hardware": [], "device_mappings": { "left_motor_forward_input": 7, "left_motor_backward_input": 8, "right_motor_forward_input": 9, "right_motor_backward_input": 10 }, "device_kinds": { "left_motor_forward_input": "motor_driver_input", "left_motor_backward_input": "motor_driver_input", "right_motor_forward_input": "motor_driver_input", "right_motor_backward_input": "motor_driver_input" }, "device_classes": { "left_motor_forward_input": "Robot", "left_motor_backward_input": "Robot", "right_motor_forward_input": "Robot", "right_motor_backward_input": "Robot" }, "ops": [ { "device": "robot", "op": "forward", "args": [] }, { "device": "robot", "op": "stop", "args": [] }, { "device": "robot", "op": "right", "args": [ 0.5 ] }, { "device": "robot", "op": "backward", "args": [] }, { "device": "robot", "op": "stop", "args": [] } ], "rpigpio_calls": [], "prose_wiring_low_confidence": [ { "device": "motor", "gpio": 7, "found_in": "en/step_1.md" } ], "conflicts": [], "usable_v1": true }, { "origin": "raspberrypilearning", "id": "rpi-python-piezoelectric-buzzer", "title": "Using a buzzer with a Raspberry Pi", "source": "https://github.com/raspberrypilearning/rpi-python-piezoelectric-buzzer", "remote_gpio": false, "hardware": [], "device_mappings": { "buzzer": 17 }, "device_kinds": { "buzzer": "digital_out" }, "device_classes": { "buzzer": "Buzzer" }, "ops": [ { "device": "buzzer", "op": "on", "args": [] } ], "rpigpio_calls": [], "prose_wiring_low_confidence": [ { "device": "buzzer", "gpio": 17, "found_in": "en/step_1.md" } ], "conflicts": [], "usable_v1": true }, { "origin": "raspberrypilearning", "id": "santa-detector", "title": "Santa detector", "source": "https://github.com/raspberrypilearning/santa-detector", "remote_gpio": false, "hardware": [ "1 x passive infra-red sensor", "3 x Female-to-female jumper leads", "A Raspberry Pi 4", "A PIR motion sensor", "Socket-to-socket jumper leads" ], "device_mappings": {}, "device_kinds": {}, "device_classes": {}, "ops": [], "rpigpio_calls": [], "prose_wiring_low_confidence": [ { "device": "pir sensor", "gpio": 4, "found_in": "worksheet.md" } ], "conflicts": [], "usable_v1": false }, { "origin": "raspberrypilearning", "id": "see-like-a-bat", "title": "See like a bat", "source": "https://github.com/raspberrypilearning/see-like-a-bat", "remote_gpio": false, "hardware": [ "Ultrasonic distance sensor", "Vibration motor", "1 1.2kΩ resistor (or other - see worksheet)", "1 2.2kΩ resistor (or other - see worksheet)", "1 x Solderless breadboard", "6 x Male-to-female jumper leads", "2 x Male-to-male jumper leads", "6 x Female-to-female jumper leads", "6 x pin-to-socket jumper leads", "2 x pin-to-pin jumper leads", "6 x socket-to-socket jumper leads" ], "device_mappings": { "trig": 4, "motor": 14 }, "device_kinds": { "trig": "digital_out", "motor": "pwm_out" }, "device_classes": { "trig": "OutputDevice", "motor": "PWMOutputDevice" }, "ops": [ { "device": "trig", "op": "on", "args": [] }, { "device": "trig", "op": "off", "args": [] }, { "device": "trig", "op": "on", "args": [] }, { "device": "trig", "op": "off", "args": [] } ], "rpigpio_calls": [], "prose_wiring_low_confidence": [ { "device": "motor", "gpio": 14, "found_in": "worksheet.md" }, { "device": "trig", "gpio": 4, "found_in": "worksheet.md" } ], "conflicts": [ "motor: PWM on GPIO[14] (spec D-01 never teaches PWM on 14/15)", "drives a motor straight from a GPIO; official GPIO docs and spec F-NO-DIRECT-MOTOR say use an H-bridge/driver (motor class devices via a driver board are fine)" ], "usable_v1": false }, { "origin": "raspberrypilearning", "id": "traffic-lights-python", "title": "Traffic Lights with Python", "source": "https://github.com/raspberrypilearning/traffic-lights-python", "remote_gpio": false, "hardware": [], "device_mappings": { "red_led": 22, "amber_led": 27, "green_led": 17 }, "device_kinds": { "red_led": "digital_out", "amber_led": "digital_out", "green_led": "digital_out" }, "device_classes": { "red_led": "LED", "amber_led": "LED", "green_led": "LED" }, "ops": [ { "device": "red", "op": "blink", "args": [] }, { "device": "red", "op": "blink", "args": [ 1, 1 ] }, { "device": "amber", "op": "blink", "args": [ 2, 2 ] }, { "device": "green", "op": "blink", "args": [ 3, 3 ] }, { "device": "red", "op": "on", "args": [] }, { "device": "amber", "op": "on", "args": [] }, { "device": "green", "op": "on", "args": [] } ], "rpigpio_calls": [], "prose_wiring_low_confidence": [], "conflicts": [], "usable_v1": true }, { "origin": "raspberrypilearning", "id": "ultrasonic-theremin", "title": "Ultrasonic theremin", "source": "https://github.com/raspberrypilearning/ultrasonic-theremin", "remote_gpio": false, "hardware": [ "330Ω Resistor", "470Ω Resistor", "Solderless Breadboard", "Ultrasonic Distance Sensor", "3 x Male to Male Jumper Leads", "4 x Male to Female Jumper Leads" ], "device_mappings": { "distance_echo": 17, "distance_trigger": 27, "buzzer": 21 }, "device_kinds": { "distance_echo": "digital_in", "distance_trigger": "digital_out", "buzzer": "pwm_out" }, "device_classes": { "distance_echo": "DistanceSensor", "distance_trigger": "DistanceSensor", "buzzer": "TonalBuzzer" }, "ops": [], "rpigpio_calls": [], "prose_wiring_low_confidence": [ { "device": "echo", "gpio": 17, "found_in": "en/step_2.md" }, { "device": "trigger", "gpio": 27, "found_in": "en/step_2.md" }, { "device": "buzzer", "gpio": 21, "found_in": "en/step_4.md" } ], "conflicts": [], "usable_v1": true } ], "summary": { "scenes": 122, "usable_v1": 88, "with_conflicts": 9 } }