Skip to content

Commit f5030e9

Browse files
author
Martin O'Hanlon
authored
Merge pull request #93 from RaspberryPiFoundation/dev
0.4.1
2 parents 8ee7226 + 28686b6 commit f5030e9

16 files changed

+155
-33
lines changed

docs/api.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,3 +140,8 @@ DigitalInputDevice
140140
:show-inheritance:
141141
:inherited-members:
142142
:members:
143+
144+
pinout
145+
------
146+
147+
.. autofunction:: pinout

docs/changelog.rst

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,21 @@ Change log
33

44
.. currentmodule:: picozero
55

6+
0.4.1 - 2022-12-22
7+
------------------
8+
9+
+ Introduced ``pinout()``
10+
+ Bug fix with ``DigitalInputDevice.when_deactivated`` decorator
11+
+ Documentation tidy up and minor fixes
12+
613
0.4.0 - 2022-11-18
7-
~~~~~~~~~~~~~~~~~~
14+
------------------
815

916
+ Introduced ``Servo`` class
1017
+ Documentation fixes
1118

1219
0.3.0 - 2022-08-12
13-
~~~~~~~~~~~~~~~~~~
20+
------------------
1421

1522
+ Introduced ``Motor``, ``Robot``, and ``DistanceSensor`` classes.
1623
+ Renamed ``LED`` factory ``use_pwm`` parameter to ``pwm`` to match other classes. **Note:** This is an API breaking change.
@@ -20,12 +27,12 @@ Change log
2027
+ Documentation updates.
2128

2229
0.2.0 - 2022-06-29
23-
~~~~~~~~~~~~~~~~~~
30+
------------------
2431

2532
+ Pico W compatibility fix for onboard LED.
2633

2734
0.1.1 - 2022-06-08
28-
~~~~~~~~~~~~~~~~~~
35+
------------------
2936

3037
+ Minor fixes for bugs found during testing.
3138
+ Small improvements to exception messages.
@@ -34,19 +41,19 @@ Change log
3441
+ Added RGBLED.colour as an alias to RGBLED.color.
3542

3643
0.1.0 - 2022-04-08
37-
~~~~~~~~~~~~~~~~~~
44+
------------------
3845

3946
+ Beta release.
4047
+ Documentation updates.
4148
+ Minor bug fixes and refactoring.
4249

4350
0.0.2 - 2022-03-31
44-
~~~~~~~~~~~~~~~~~~
51+
------------------
4552

4653
+ Bug fixes and documentation updates.
4754

4855
0.0.1 - 2022-03-21
49-
~~~~~~~~~~~~~~~~~~
56+
------------------
5057

5158
+ Initial alpha release to test installation process.
5259

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def __getattr__(cls, name):
4747
author = 'Raspberry Pi Foundation'
4848

4949
# The full version, including alpha/beta/rc tags
50-
release = '0.4.0'
50+
release = '0.4.1'
5151

5252

5353
# -- General configuration ---------------------------------------------------

docs/developing.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,11 @@ Install sphinx using ::
4040

4141
To test the documentation build, run the following command from the docs directory ::
4242

43-
$ make html
43+
$ ./make html
4444

4545
The website will be built in the directory docs/_build/html.
4646

47-
Documentation can be viewed at `picozero.readthedocs.io`_ and is automatically built and deployed on commit.
47+
Documentation can be viewed at `picozero.readthedocs.io`_ and is automatically built and deployed on push to github.
4848

4949
.. _picozero.readthedocs.io: https://picozero.readthedocs.io
5050

docs/examples/led_blink.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
from picozero import LED
2-
from time import sleep
32

43
led = LED(14)
54

docs/examples/led_pulse.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
from time import sleep
21
from picozero import LED
2+
from time import sleep
33
from math import sin, radians
44

55
led = LED(14)

docs/examples/led_pulse_method.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
from picozero import LED
2+
3+
led = LED(14)
4+
5+
led.pulse()

docs/examples/pico_temperature.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Choose View -> Plotter in Thonny to see a graph of the results
22

3-
from time import sleep
43
from picozero import pico_temp_sensor
4+
from time import sleep
55

66
while True:
77
print(pico_temp_sensor.temp)

docs/examples/print_pinout.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
from picozero import pinout
2+
3+
pinout()

docs/examples/robot_rover_square.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
from picozero import Robot
2-
from time import sleep
32

43
robot_rover = Robot(left=(14,15), right=(12,13))
54

0 commit comments

Comments
 (0)