Skip to content

Commit 8b72f9a

Browse files
author
Martin O'Hanlon
authored
Merge pull request #85 from RaspberryPiFoundation/dev
v0.4.0
2 parents 887eba9 + f2fd379 commit 8b72f9a

File tree

6 files changed

+24
-4
lines changed

6 files changed

+24
-4
lines changed

docs/changelog.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@ Change log
33

44
.. currentmodule:: picozero
55

6+
0.4.0 - 2022-11-18
7+
~~~~~~~~~~~~~~~~~~
8+
9+
+ Introduced ``Servo`` class
10+
+ Documentation fixes
11+
612
0.3.0 - 2022-08-12
713
~~~~~~~~~~~~~~~~~~
814

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.3.0'
50+
release = '0.4.0'
5151

5252

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

docs/examples/pot_led.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
from picozero import Pot, LED
2+
3+
# Potentiometer connected to GP26 (ADC0), GND and 3V
4+
# LED connected to GP0
5+
6+
pot = Pot(26)
7+
led = LED(0)
8+
9+
while True:
10+
led.value = pot.value

docs/recipes.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,10 @@ Print the value, voltage and percent reported by a potentiometer:
154154

155155
In the Thonny Python editor, choose View->Plotter to plot the output of :meth:`print`.
156156

157+
Use a potentiometer to control the brightness of an LED:
158+
159+
.. literalinclude:: examples/pot_led.py
160+
157161
Buzzer
158162
------
159163

picozero/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
__name__ = "picozero"
22
__package__ = "picozero"
3-
__version__ = '0.3.0'
3+
__version__ = '0.4.0'
44
__author__ = "Raspberry Pi Foundation"
55

66
from .picozero import (

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
__project__ = 'picozero'
44
__packages__ = ['picozero']
55
__desc__ = 'A beginner-friendly library for using common electronics components with the Raspberry Pi Pico. '
6-
__version__ = '0.3.0'
6+
__version__ = '0.4.0'
77
__author__ = "Raspberry Pi Foundation"
88
__author_email__ = '[email protected]'
99
__license__ = 'MIT'
@@ -15,7 +15,7 @@
1515
'electronics',
1616
]
1717
__classifiers__ = [
18-
'Development Status :: 1 - Planning',
18+
'Development Status :: 4 - Beta',
1919
'Intended Audience :: Developers',
2020
'Intended Audience :: Education',
2121
'Programming Language :: Python :: Implementation :: MicroPython',

0 commit comments

Comments
 (0)