Skip to content

Commit

Permalink
Merge pull request #85 from RaspberryPiFoundation/dev
Browse files Browse the repository at this point in the history
v0.4.0
  • Loading branch information
Martin O'Hanlon authored Nov 18, 2022
2 parents 887eba9 + f2fd379 commit 8b72f9a
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 4 deletions.
6 changes: 6 additions & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ Change log

.. currentmodule:: picozero

0.4.0 - 2022-11-18
~~~~~~~~~~~~~~~~~~

+ Introduced ``Servo`` class
+ Documentation fixes

0.3.0 - 2022-08-12
~~~~~~~~~~~~~~~~~~

Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def __getattr__(cls, name):
author = 'Raspberry Pi Foundation'

# The full version, including alpha/beta/rc tags
release = '0.3.0'
release = '0.4.0'


# -- General configuration ---------------------------------------------------
Expand Down
10 changes: 10 additions & 0 deletions docs/examples/pot_led.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
from picozero import Pot, LED

# Potentiometer connected to GP26 (ADC0), GND and 3V
# LED connected to GP0

pot = Pot(26)
led = LED(0)

while True:
led.value = pot.value
4 changes: 4 additions & 0 deletions docs/recipes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,10 @@ Print the value, voltage and percent reported by a potentiometer:

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

Use a potentiometer to control the brightness of an LED:

.. literalinclude:: examples/pot_led.py

Buzzer
------

Expand Down
2 changes: 1 addition & 1 deletion picozero/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
__name__ = "picozero"
__package__ = "picozero"
__version__ = '0.3.0'
__version__ = '0.4.0'
__author__ = "Raspberry Pi Foundation"

from .picozero import (
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
__project__ = 'picozero'
__packages__ = ['picozero']
__desc__ = 'A beginner-friendly library for using common electronics components with the Raspberry Pi Pico. '
__version__ = '0.3.0'
__version__ = '0.4.0'
__author__ = "Raspberry Pi Foundation"
__author_email__ = '[email protected]'
__license__ = 'MIT'
Expand All @@ -15,7 +15,7 @@
'electronics',
]
__classifiers__ = [
'Development Status :: 1 - Planning',
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Intended Audience :: Education',
'Programming Language :: Python :: Implementation :: MicroPython',
Expand Down

0 comments on commit 8b72f9a

Please sign in to comment.