forked from RaspberryPiFoundation/picozero
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
65 lines (56 loc) · 1.64 KB
/
setup.py
File metadata and controls
65 lines (56 loc) · 1.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
from setuptools import setup
__project__ = 'picozero-rw'
__packages__ = ['picozero']
__desc__ = 'This is a fork of the origin picozero library'
__version__ = '0.6.2'
__author__ = "Roboticsware"
__author_email__ = 'roboticsware_uz@gmail.com'
__license__ = 'MIT'
__url__ = 'https://github.com/roboticsware/picozero'
__keywords__ = [
'raspberry',
'pi',
'pico',
'electronics',
'roboticsware'
]
__classifiers__ = [
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Intended Audience :: Education',
'Programming Language :: Python :: Implementation :: MicroPython',
]
__long_description__ = """A beginner-friendly library for using common electronics components with the Raspberry Pi Pico.
Roboticsware added some functionalities based on picozero of Raspberry Pi Foundation.
```python
from picozero import LED, Button
led = LED(1)
button = Button(2)
button.when_pressed = led.on
button.when_released = led.off
```
```python
from picozero import I2cLcd
from time import sleep
lcd = I2cLcd(1, 3, 2) # LCD 16x2, i2c_id=1, scl=3, sda=2
lcd.putstr('Hello World')
sleep(1)
lcd.move_to(0, 1)
lcd.putstr('Hello Roboticsware')
```
Documentation is available at [picozero-rw.readthedocs.io](https://picozero-rw.readthedocs.io/en/latest/).
"""
setup(
name=__project__,
version=__version__,
description=__desc__,
long_description=__long_description__,
long_description_content_type="text/markdown",
url=__url__,
author=__author__,
author_email=__author_email__,
license=__license__,
classifiers=__classifiers__,
keywords=__keywords__,
packages=__packages__,
)