Work on #51
Some more circuit diagrams; better check these are accurate - I haven't had time to wire them up and test them!
BIN
docs/images/led_button.fzz
Normal file
BIN
docs/images/led_button_bb.pdf
Normal file
BIN
docs/images/led_button_bb.png
Normal file
|
After Width: | Height: | Size: 49 KiB |
4562
docs/images/led_button_bb.svg
Normal file
|
After Width: | Height: | Size: 276 KiB |
BIN
docs/images/light_sensor.fzz
Normal file
BIN
docs/images/light_sensor_bb.pdf
Normal file
BIN
docs/images/light_sensor_bb.png
Normal file
|
After Width: | Height: | Size: 63 KiB |
4588
docs/images/light_sensor_bb.svg
Normal file
|
After Width: | Height: | Size: 285 KiB |
BIN
docs/images/motion_sensor.fzz
Normal file
BIN
docs/images/motion_sensor_bb.pdf
Normal file
BIN
docs/images/motion_sensor_bb.png
Normal file
|
After Width: | Height: | Size: 54 KiB |
4603
docs/images/motion_sensor_bb.svg
Normal file
|
After Width: | Height: | Size: 280 KiB |
BIN
docs/images/motor.fzz
Normal file
BIN
docs/images/motor_bb.pdf
Normal file
BIN
docs/images/motor_bb.png
Normal file
|
After Width: | Height: | Size: 71 KiB |
4596
docs/images/motor_bb.svg
Normal file
|
After Width: | Height: | Size: 279 KiB |
BIN
docs/images/reaction_game.fzz
Normal file
BIN
docs/images/reaction_game_bb.pdf
Normal file
BIN
docs/images/reaction_game_bb.png
Normal file
|
After Width: | Height: | Size: 66 KiB |
4589
docs/images/reaction_game_bb.svg
Normal file
|
After Width: | Height: | Size: 280 KiB |
BIN
docs/images/rgb_led.fzz
Normal file
BIN
docs/images/rgb_led_bb.pdf
Normal file
BIN
docs/images/rgb_led_bb.png
Normal file
|
After Width: | Height: | Size: 52 KiB |
4539
docs/images/rgb_led_bb.svg
Normal file
|
After Width: | Height: | Size: 272 KiB |
BIN
docs/images/traffic_lights.fzz
Normal file
BIN
docs/images/traffic_lights_bb.pdf
Normal file
BIN
docs/images/traffic_lights_bb.png
Normal file
|
After Width: | Height: | Size: 58 KiB |
4625
docs/images/traffic_lights_bb.svg
Normal file
|
After Width: | Height: | Size: 291 KiB |
@@ -103,6 +103,8 @@ Run a function every time the button is pressed::
|
|||||||
Button controlled LED
|
Button controlled LED
|
||||||
=====================
|
=====================
|
||||||
|
|
||||||
|
.. image:: images/led_button_bb.*
|
||||||
|
|
||||||
Turn on an :class:`LED` when a :class:`Button` is pressed::
|
Turn on an :class:`LED` when a :class:`Button` is pressed::
|
||||||
|
|
||||||
from gpiozero import LED, Button
|
from gpiozero import LED, Button
|
||||||
@@ -132,6 +134,8 @@ Alternatively::
|
|||||||
Traffic Lights
|
Traffic Lights
|
||||||
==============
|
==============
|
||||||
|
|
||||||
|
.. image:: images/traffic_lights_bb.*
|
||||||
|
|
||||||
A full traffic lights system.
|
A full traffic lights system.
|
||||||
|
|
||||||
Using a :class:`TrafficLights` kit like Pi-Stop::
|
Using a :class:`TrafficLights` kit like Pi-Stop::
|
||||||
@@ -230,6 +234,8 @@ See `Push Button Stop Motion`_ for a full resource.
|
|||||||
Reaction Game
|
Reaction Game
|
||||||
=============
|
=============
|
||||||
|
|
||||||
|
.. image:: images/reaction_game_bb.*
|
||||||
|
|
||||||
When you see the light come on, the first person to press their button wins!
|
When you see the light come on, the first person to press their button wins!
|
||||||
|
|
||||||
::
|
::
|
||||||
@@ -348,6 +354,8 @@ Using :class:`LED`, :class:`Buzzer`, and :class:`Button` components::
|
|||||||
RGB LED
|
RGB LED
|
||||||
=======
|
=======
|
||||||
|
|
||||||
|
.. image:: images/rgb_led_bb.*
|
||||||
|
|
||||||
Making colours with an :class:`RGBLED`::
|
Making colours with an :class:`RGBLED`::
|
||||||
|
|
||||||
from gpiozero import RGBLED
|
from gpiozero import RGBLED
|
||||||
@@ -383,7 +391,7 @@ Making colours with an :class:`RGBLED`::
|
|||||||
Motion sensor
|
Motion sensor
|
||||||
=============
|
=============
|
||||||
|
|
||||||
.. image:: images/motion-sensor.*
|
.. image:: images/motion_sensor_bb.*
|
||||||
|
|
||||||
Light an :class:`LED` when a :class:`MotionSensor` detects motion::
|
Light an :class:`LED` when a :class:`MotionSensor` detects motion::
|
||||||
|
|
||||||
@@ -402,7 +410,7 @@ Light an :class:`LED` when a :class:`MotionSensor` detects motion::
|
|||||||
Light sensor
|
Light sensor
|
||||||
============
|
============
|
||||||
|
|
||||||
.. IMAGE TBD
|
.. image:: images/light_sensor_bb.*
|
||||||
|
|
||||||
Have a :class:`LightSensor` detect light and dark::
|
Have a :class:`LightSensor` detect light and dark::
|
||||||
|
|
||||||
@@ -476,7 +484,7 @@ Run a function when something gets near the sensor::
|
|||||||
Motors
|
Motors
|
||||||
======
|
======
|
||||||
|
|
||||||
.. IMAGE TBD
|
.. image:: images/motor_bb.*
|
||||||
|
|
||||||
Spin a :class:`Motor` around forwards and backwards::
|
Spin a :class:`Motor` around forwards and backwards::
|
||||||
|
|
||||||
|
|||||||