├── .github ├── CODEOWNERS ├── CODE_OF_CONDUCT.md ├── CONTRIBUTING.md └── ISSUE_TEMPLATE │ ├── bug_report.md │ └── feature_request.md ├── .gitignore ├── .readthedocs.yaml ├── LICENSE.md ├── README.rst ├── docs ├── Makefile ├── _static │ └── .keep ├── api.rst ├── changelog.rst ├── conf.py ├── contributing.rst ├── developing.rst ├── examples │ ├── button_function.py │ ├── button_is_pressed.py │ ├── button_led.py │ ├── buzzer.py │ ├── led_blink.py │ ├── led_brightness.py │ ├── led_on_off.py │ ├── led_pulse.py │ ├── led_pulse_method.py │ ├── led_toggle.py │ ├── motion_sensor.py │ ├── motion_sensor_callbacks.py │ ├── motor_move.py │ ├── pico_led.py │ ├── pico_temperature.py │ ├── pot_led.py │ ├── potentiometer.py │ ├── print_pinout.py │ ├── rgb_blink.py │ ├── rgb_cycle.py │ ├── rgb_led.py │ ├── rgb_pulse.py │ ├── rgb_toggle_invert.py │ ├── robot_rover_forward.py │ ├── robot_rover_square.py │ ├── servo_move.py │ ├── servo_pulse.py │ ├── servo_sweep.py │ ├── speaker.py │ ├── speaker_midi_notes.py │ ├── speaker_notes.py │ ├── speaker_tune.py │ ├── stepper_analog_clock.py │ ├── stepper_automatic_blinds.py │ ├── touch_sensor.py │ ├── touch_sensor_callbacks.py │ └── ultrasonic_distance_sensor.py ├── gettingstarted.rst ├── images │ ├── distance_sensor_bb.svg │ ├── pico_led.png │ ├── pico_led.svg │ ├── pico_led_14_bb.svg │ ├── pico_led_14_bb_f.svg │ ├── robot_bb.svg │ ├── run-current-script.jpg │ ├── save-this-computer.png │ ├── save-this-raspberry-pi-pico.png │ ├── servo.svg │ ├── thonny-copy-picozero.jpg │ ├── thonny-install-package.jpg │ ├── thonny-manage-packages.jpg │ ├── thonny-navigate-downloads.jpg │ ├── thonny-packages-picozero.jpg │ ├── thonny-switch-interpreter.jpg │ ├── thonny-upload-files.jpg │ └── thonny-view-files.jpg ├── index.rst ├── make.bat ├── recipes.rst ├── requirements.txt └── sketches │ ├── distance_sensor.fzz │ ├── pico_led_14.fzz │ ├── robot.fzz │ └── servo.fzz ├── package.json ├── picozero ├── __init__.py └── picozero.py ├── setup.py └── tests ├── README.rst └── test_picozero.py /.github/CODEOWNERS: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RaspberryPiFoundation/picozero/HEAD/.github/CODEOWNERS -------------------------------------------------------------------------------- /.github/CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RaspberryPiFoundation/picozero/HEAD/.github/CODE_OF_CONDUCT.md -------------------------------------------------------------------------------- /.github/CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RaspberryPiFoundation/picozero/HEAD/.github/CONTRIBUTING.md -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/bug_report.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RaspberryPiFoundation/picozero/HEAD/.github/ISSUE_TEMPLATE/bug_report.md -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature_request.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RaspberryPiFoundation/picozero/HEAD/.github/ISSUE_TEMPLATE/feature_request.md -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RaspberryPiFoundation/picozero/HEAD/.gitignore -------------------------------------------------------------------------------- /.readthedocs.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RaspberryPiFoundation/picozero/HEAD/.readthedocs.yaml -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RaspberryPiFoundation/picozero/HEAD/LICENSE.md -------------------------------------------------------------------------------- /README.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RaspberryPiFoundation/picozero/HEAD/README.rst -------------------------------------------------------------------------------- /docs/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RaspberryPiFoundation/picozero/HEAD/docs/Makefile -------------------------------------------------------------------------------- /docs/_static/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /docs/api.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RaspberryPiFoundation/picozero/HEAD/docs/api.rst -------------------------------------------------------------------------------- /docs/changelog.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RaspberryPiFoundation/picozero/HEAD/docs/changelog.rst -------------------------------------------------------------------------------- /docs/conf.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RaspberryPiFoundation/picozero/HEAD/docs/conf.py -------------------------------------------------------------------------------- /docs/contributing.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RaspberryPiFoundation/picozero/HEAD/docs/contributing.rst -------------------------------------------------------------------------------- /docs/developing.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RaspberryPiFoundation/picozero/HEAD/docs/developing.rst -------------------------------------------------------------------------------- /docs/examples/button_function.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RaspberryPiFoundation/picozero/HEAD/docs/examples/button_function.py -------------------------------------------------------------------------------- /docs/examples/button_is_pressed.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RaspberryPiFoundation/picozero/HEAD/docs/examples/button_is_pressed.py -------------------------------------------------------------------------------- /docs/examples/button_led.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RaspberryPiFoundation/picozero/HEAD/docs/examples/button_led.py -------------------------------------------------------------------------------- /docs/examples/buzzer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RaspberryPiFoundation/picozero/HEAD/docs/examples/buzzer.py -------------------------------------------------------------------------------- /docs/examples/led_blink.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RaspberryPiFoundation/picozero/HEAD/docs/examples/led_blink.py -------------------------------------------------------------------------------- /docs/examples/led_brightness.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RaspberryPiFoundation/picozero/HEAD/docs/examples/led_brightness.py -------------------------------------------------------------------------------- /docs/examples/led_on_off.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RaspberryPiFoundation/picozero/HEAD/docs/examples/led_on_off.py -------------------------------------------------------------------------------- /docs/examples/led_pulse.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RaspberryPiFoundation/picozero/HEAD/docs/examples/led_pulse.py -------------------------------------------------------------------------------- /docs/examples/led_pulse_method.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RaspberryPiFoundation/picozero/HEAD/docs/examples/led_pulse_method.py -------------------------------------------------------------------------------- /docs/examples/led_toggle.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RaspberryPiFoundation/picozero/HEAD/docs/examples/led_toggle.py -------------------------------------------------------------------------------- /docs/examples/motion_sensor.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RaspberryPiFoundation/picozero/HEAD/docs/examples/motion_sensor.py -------------------------------------------------------------------------------- /docs/examples/motion_sensor_callbacks.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RaspberryPiFoundation/picozero/HEAD/docs/examples/motion_sensor_callbacks.py -------------------------------------------------------------------------------- /docs/examples/motor_move.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RaspberryPiFoundation/picozero/HEAD/docs/examples/motor_move.py -------------------------------------------------------------------------------- /docs/examples/pico_led.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RaspberryPiFoundation/picozero/HEAD/docs/examples/pico_led.py -------------------------------------------------------------------------------- /docs/examples/pico_temperature.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RaspberryPiFoundation/picozero/HEAD/docs/examples/pico_temperature.py -------------------------------------------------------------------------------- /docs/examples/pot_led.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RaspberryPiFoundation/picozero/HEAD/docs/examples/pot_led.py -------------------------------------------------------------------------------- /docs/examples/potentiometer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RaspberryPiFoundation/picozero/HEAD/docs/examples/potentiometer.py -------------------------------------------------------------------------------- /docs/examples/print_pinout.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RaspberryPiFoundation/picozero/HEAD/docs/examples/print_pinout.py -------------------------------------------------------------------------------- /docs/examples/rgb_blink.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RaspberryPiFoundation/picozero/HEAD/docs/examples/rgb_blink.py -------------------------------------------------------------------------------- /docs/examples/rgb_cycle.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RaspberryPiFoundation/picozero/HEAD/docs/examples/rgb_cycle.py -------------------------------------------------------------------------------- /docs/examples/rgb_led.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RaspberryPiFoundation/picozero/HEAD/docs/examples/rgb_led.py -------------------------------------------------------------------------------- /docs/examples/rgb_pulse.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RaspberryPiFoundation/picozero/HEAD/docs/examples/rgb_pulse.py -------------------------------------------------------------------------------- /docs/examples/rgb_toggle_invert.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RaspberryPiFoundation/picozero/HEAD/docs/examples/rgb_toggle_invert.py -------------------------------------------------------------------------------- /docs/examples/robot_rover_forward.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RaspberryPiFoundation/picozero/HEAD/docs/examples/robot_rover_forward.py -------------------------------------------------------------------------------- /docs/examples/robot_rover_square.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RaspberryPiFoundation/picozero/HEAD/docs/examples/robot_rover_square.py -------------------------------------------------------------------------------- /docs/examples/servo_move.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RaspberryPiFoundation/picozero/HEAD/docs/examples/servo_move.py -------------------------------------------------------------------------------- /docs/examples/servo_pulse.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RaspberryPiFoundation/picozero/HEAD/docs/examples/servo_pulse.py -------------------------------------------------------------------------------- /docs/examples/servo_sweep.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RaspberryPiFoundation/picozero/HEAD/docs/examples/servo_sweep.py -------------------------------------------------------------------------------- /docs/examples/speaker.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RaspberryPiFoundation/picozero/HEAD/docs/examples/speaker.py -------------------------------------------------------------------------------- /docs/examples/speaker_midi_notes.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RaspberryPiFoundation/picozero/HEAD/docs/examples/speaker_midi_notes.py -------------------------------------------------------------------------------- /docs/examples/speaker_notes.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RaspberryPiFoundation/picozero/HEAD/docs/examples/speaker_notes.py -------------------------------------------------------------------------------- /docs/examples/speaker_tune.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RaspberryPiFoundation/picozero/HEAD/docs/examples/speaker_tune.py -------------------------------------------------------------------------------- /docs/examples/stepper_analog_clock.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RaspberryPiFoundation/picozero/HEAD/docs/examples/stepper_analog_clock.py -------------------------------------------------------------------------------- /docs/examples/stepper_automatic_blinds.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RaspberryPiFoundation/picozero/HEAD/docs/examples/stepper_automatic_blinds.py -------------------------------------------------------------------------------- /docs/examples/touch_sensor.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RaspberryPiFoundation/picozero/HEAD/docs/examples/touch_sensor.py -------------------------------------------------------------------------------- /docs/examples/touch_sensor_callbacks.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RaspberryPiFoundation/picozero/HEAD/docs/examples/touch_sensor_callbacks.py -------------------------------------------------------------------------------- /docs/examples/ultrasonic_distance_sensor.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RaspberryPiFoundation/picozero/HEAD/docs/examples/ultrasonic_distance_sensor.py -------------------------------------------------------------------------------- /docs/gettingstarted.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RaspberryPiFoundation/picozero/HEAD/docs/gettingstarted.rst -------------------------------------------------------------------------------- /docs/images/distance_sensor_bb.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RaspberryPiFoundation/picozero/HEAD/docs/images/distance_sensor_bb.svg -------------------------------------------------------------------------------- /docs/images/pico_led.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RaspberryPiFoundation/picozero/HEAD/docs/images/pico_led.png -------------------------------------------------------------------------------- /docs/images/pico_led.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RaspberryPiFoundation/picozero/HEAD/docs/images/pico_led.svg -------------------------------------------------------------------------------- /docs/images/pico_led_14_bb.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RaspberryPiFoundation/picozero/HEAD/docs/images/pico_led_14_bb.svg -------------------------------------------------------------------------------- /docs/images/pico_led_14_bb_f.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RaspberryPiFoundation/picozero/HEAD/docs/images/pico_led_14_bb_f.svg -------------------------------------------------------------------------------- /docs/images/robot_bb.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RaspberryPiFoundation/picozero/HEAD/docs/images/robot_bb.svg -------------------------------------------------------------------------------- /docs/images/run-current-script.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RaspberryPiFoundation/picozero/HEAD/docs/images/run-current-script.jpg -------------------------------------------------------------------------------- /docs/images/save-this-computer.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RaspberryPiFoundation/picozero/HEAD/docs/images/save-this-computer.png -------------------------------------------------------------------------------- /docs/images/save-this-raspberry-pi-pico.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RaspberryPiFoundation/picozero/HEAD/docs/images/save-this-raspberry-pi-pico.png -------------------------------------------------------------------------------- /docs/images/servo.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RaspberryPiFoundation/picozero/HEAD/docs/images/servo.svg -------------------------------------------------------------------------------- /docs/images/thonny-copy-picozero.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RaspberryPiFoundation/picozero/HEAD/docs/images/thonny-copy-picozero.jpg -------------------------------------------------------------------------------- /docs/images/thonny-install-package.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RaspberryPiFoundation/picozero/HEAD/docs/images/thonny-install-package.jpg -------------------------------------------------------------------------------- /docs/images/thonny-manage-packages.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RaspberryPiFoundation/picozero/HEAD/docs/images/thonny-manage-packages.jpg -------------------------------------------------------------------------------- /docs/images/thonny-navigate-downloads.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RaspberryPiFoundation/picozero/HEAD/docs/images/thonny-navigate-downloads.jpg -------------------------------------------------------------------------------- /docs/images/thonny-packages-picozero.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RaspberryPiFoundation/picozero/HEAD/docs/images/thonny-packages-picozero.jpg -------------------------------------------------------------------------------- /docs/images/thonny-switch-interpreter.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RaspberryPiFoundation/picozero/HEAD/docs/images/thonny-switch-interpreter.jpg -------------------------------------------------------------------------------- /docs/images/thonny-upload-files.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RaspberryPiFoundation/picozero/HEAD/docs/images/thonny-upload-files.jpg -------------------------------------------------------------------------------- /docs/images/thonny-view-files.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RaspberryPiFoundation/picozero/HEAD/docs/images/thonny-view-files.jpg -------------------------------------------------------------------------------- /docs/index.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RaspberryPiFoundation/picozero/HEAD/docs/index.rst -------------------------------------------------------------------------------- /docs/make.bat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RaspberryPiFoundation/picozero/HEAD/docs/make.bat -------------------------------------------------------------------------------- /docs/recipes.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RaspberryPiFoundation/picozero/HEAD/docs/recipes.rst -------------------------------------------------------------------------------- /docs/requirements.txt: -------------------------------------------------------------------------------- 1 | sphinx-rtd-theme 2 | -------------------------------------------------------------------------------- /docs/sketches/distance_sensor.fzz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RaspberryPiFoundation/picozero/HEAD/docs/sketches/distance_sensor.fzz -------------------------------------------------------------------------------- /docs/sketches/pico_led_14.fzz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RaspberryPiFoundation/picozero/HEAD/docs/sketches/pico_led_14.fzz -------------------------------------------------------------------------------- /docs/sketches/robot.fzz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RaspberryPiFoundation/picozero/HEAD/docs/sketches/robot.fzz -------------------------------------------------------------------------------- /docs/sketches/servo.fzz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RaspberryPiFoundation/picozero/HEAD/docs/sketches/servo.fzz -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RaspberryPiFoundation/picozero/HEAD/package.json -------------------------------------------------------------------------------- /picozero/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RaspberryPiFoundation/picozero/HEAD/picozero/__init__.py -------------------------------------------------------------------------------- /picozero/picozero.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RaspberryPiFoundation/picozero/HEAD/picozero/picozero.py -------------------------------------------------------------------------------- /setup.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RaspberryPiFoundation/picozero/HEAD/setup.py -------------------------------------------------------------------------------- /tests/README.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RaspberryPiFoundation/picozero/HEAD/tests/README.rst -------------------------------------------------------------------------------- /tests/test_picozero.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RaspberryPiFoundation/picozero/HEAD/tests/test_picozero.py --------------------------------------------------------------------------------