picozero-rw 0.6.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,7 @@
1
+ Copyright 2025 Raspberry Pi Foundation
2
+
3
+ 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:
4
+
5
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6
+
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.
@@ -0,0 +1,52 @@
1
+ Metadata-Version: 2.4
2
+ Name: picozero-rw
3
+ Version: 0.6.2
4
+ Summary: This is a fork of the origin picozero library
5
+ Home-page: https://github.com/roboticsware/picozero
6
+ Author: Roboticsware
7
+ Author-email: roboticsware_uz@gmail.com
8
+ License: MIT
9
+ Keywords: raspberry,pi,pico,electronics,roboticsware
10
+ Classifier: Development Status :: 4 - Beta
11
+ Classifier: Intended Audience :: Developers
12
+ Classifier: Intended Audience :: Education
13
+ Classifier: Programming Language :: Python :: Implementation :: MicroPython
14
+ Description-Content-Type: text/markdown
15
+ License-File: LICENSE.md
16
+ Dynamic: author
17
+ Dynamic: author-email
18
+ Dynamic: classifier
19
+ Dynamic: description
20
+ Dynamic: description-content-type
21
+ Dynamic: home-page
22
+ Dynamic: keywords
23
+ Dynamic: license
24
+ Dynamic: license-file
25
+ Dynamic: summary
26
+
27
+ A beginner-friendly library for using common electronics components with the Raspberry Pi Pico.
28
+ Roboticsware added some functionalities based on picozero of Raspberry Pi Foundation.
29
+
30
+ ```python
31
+ from picozero import LED, Button
32
+
33
+ led = LED(1)
34
+ button = Button(2)
35
+
36
+ button.when_pressed = led.on
37
+ button.when_released = led.off
38
+ ```
39
+
40
+ ```python
41
+ from picozero import I2cLcd
42
+ from time import sleep
43
+
44
+ lcd = I2cLcd(1, 3, 2) # LCD 16x2, i2c_id=1, scl=3, sda=2
45
+
46
+ lcd.putstr('Hello World')
47
+ sleep(1)
48
+ lcd.move_to(0, 1)
49
+ lcd.putstr('Hello Roboticsware')
50
+ ```
51
+
52
+ Documentation is available at [picozero-rw.readthedocs.io](https://picozero-rw.readthedocs.io/en/latest/).
@@ -0,0 +1,56 @@
1
+ picozero-rw
2
+ ===========
3
+
4
+ |pypibadge| |docsbadge|
5
+
6
+ A beginner-friendly library to help you use common electronics components with the Raspberry Pi Pico.
7
+
8
+ This is a fork of the `origin picozero library. <https://github.com/RaspberryPiFoundation/picozero>`_
9
+
10
+
11
+ .. code-block:: python
12
+
13
+ from picozero import LED, Button
14
+
15
+ led = LED(1)
16
+ button = Button(2)
17
+
18
+ button.when_pressed = led.on
19
+ button.when_released = led.off
20
+
21
+ Status
22
+ ------
23
+
24
+ Beta. There will be bugs and issues. API changes are likely. More devices will be added over time.
25
+
26
+ Documentation
27
+ -------------
28
+
29
+ Documentation is available at `picozero-rw.readthedocs.io <https://picozero-rw.readthedocs.io>`_:
30
+
31
+ - `Installation and getting started guide <https://picozero-rw.readthedocs.io/en/latest/gettingstarted.html>`_
32
+ - `Recipes and how-to's <https://picozero-rw.readthedocs.io/en/latest/recipes.html>`_
33
+ - `API <https://picozero-rw.readthedocs.io/en/latest/api.html>`_
34
+ - `Example code <https://github.com/roboticsware/picozero/tree/master/docs/examples>`_
35
+
36
+ Code
37
+ ----
38
+
39
+ The code and project is at `github.com/roboticsware/picozero <https://github.com/roboticsware/picozero>`_.
40
+
41
+ Issues can be raised at `github.com/roboticsware/picozero/issues <https://github.com/roboticsware/picozero/issues>`_ (see `Contributing <https://picozero-rw.readthedocs.io/en/latest/contributing.html>`_).
42
+
43
+ The latest distribution is available at `pypi.org/project/picozero-rw/ <https://pypi.org/project/picozero-rw/>`_.
44
+
45
+ Thanks
46
+ ------
47
+
48
+ picozero is inspired by `gpiozero <https://gpiozero.readthedocs.io/en/stable/>`_ (and reuses some of its underlying structure), but is, by design, lighter weight and aligned with the Raspberry Pi Pico. Thank you to everyone who has contributed to the gpiozero project.
49
+
50
+ .. |pypibadge| image:: https://badge.fury.io/py/picozero-rw.svg
51
+ :target: https://badge.fury.io/py/picozero-rw
52
+ :alt: Latest Version
53
+
54
+ .. |docsbadge| image:: https://readthedocs.org/projects/picozero-rw/badge/
55
+ :target: https://readthedocs.org/projects/picozero-rw/
56
+ :alt: Docs
@@ -0,0 +1,38 @@
1
+ __name__ = "picozero"
2
+ __package__ = "picozero"
3
+ __version__ = "0.6.2"
4
+ __author__ = "Raspberry Pi Foundation"
5
+
6
+ from .picozero import (
7
+ PWMChannelAlreadyInUse,
8
+ EventFailedScheduleQueueFull,
9
+ pinout,
10
+ DigitalOutputDevice,
11
+ DigitalLED,
12
+ Buzzer,
13
+ PWMOutputDevice,
14
+ PWMLED,
15
+ LED,
16
+ pico_led,
17
+ PWMBuzzer,
18
+ Speaker,
19
+ RGBLED,
20
+ Motor,
21
+ Robot,
22
+ Stepper,
23
+ Servo,
24
+ DigitalInputDevice,
25
+ Switch,
26
+ Button,
27
+ MotionSensor,
28
+ TouchSensor,
29
+ AnalogInputDevice,
30
+ Potentiometer,
31
+ Pot,
32
+ TemperatureSensor,
33
+ pico_temp_sensor,
34
+ TempSensor,
35
+ Thermistor,
36
+ DistanceSensor,
37
+ I2cLcd,
38
+ )