Skip to content

Commit ef127fc

Browse files
authored
Merge branch 'main' into dev
2 parents 75c8867 + bcef471 commit ef127fc

File tree

5 files changed

+26
-7
lines changed

5 files changed

+26
-7
lines changed

.github/CODEOWNERS

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Each line is a file pattern followed by one or more owners.
2+
3+
# These owners will be the default owners for everything in
4+
# the repo, unless a later match takes precedence.
5+
# They will be requested for review when a pull request is opened.
6+
7+
# Teams:
8+
# * @raspberrypifoundation/digital-products-team @raspberrypifoundation/pico-zero
9+
10+
# Individuals:
11+
* @grega @MarcScott

LICENSE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
Copyright 2022 Raspberry Pi Foundation
1+
Copyright 2023 Raspberry Pi Foundation
22

33
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
44

55
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
66

7-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
7+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

docs/examples/potentiometer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Potentiometer connected to GP26 (ADC0), GND and 3V
22

33
from time import sleep
4-
from pico import Pot
4+
from picozero import Pot
55

66
pot = Pot(26)
77

package.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"urls": [
3+
["picozero/__init__.py", "github:RaspberryPiFoundation/picozero/picozero/__init__.py"],
4+
["picozero/picozero.py", "github:RaspberryPiFoundation/picozero/picozero/picozero.py"]
5+
],
6+
"deps": [
7+
],
8+
"version": "0.4.2"
9+
}

picozero/picozero.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2209,11 +2209,10 @@ class DistanceSensor(PinsMixin):
22092209
22102210
:param float max_distance:
22112211
The :attr:`value` attribute reports a normalized value between 0 (too
2212-
close to measure) and 1 (maximum distance). This parameter specifies
2213-
the maximum distance expected in meters. This defaults to 1.
2212+
close to measure) and 1.0 (maximum distance). This parameter specifies
2213+
the maximum distance expected in meters. This defaults to 1.0.
22142214
"""
2215-
2216-
def __init__(self, echo, trigger, max_distance=1):
2215+
def __init__(self, echo, trigger, max_distance=1.0):
22172216
self._pin_nums = (echo, trigger)
22182217
self._max_distance = max_distance
22192218
self._echo = Pin(echo, mode=Pin.IN, pull=Pin.PULL_DOWN)

0 commit comments

Comments
 (0)