bluer-sbc 8.3.1__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.
Potentially problematic release.
This version of bluer-sbc might be problematic. Click here for more details.
- bluer_sbc-8.3.1/LICENSE +121 -0
- bluer_sbc-8.3.1/MANIFEST.in +1 -0
- bluer_sbc-8.3.1/PKG-INFO +58 -0
- bluer_sbc-8.3.1/README.md +57 -0
- bluer_sbc-8.3.1/bluer_sbc/.abcli/abcli.sh +12 -0
- bluer_sbc-8.3.1/bluer_sbc/.abcli/actions.sh +11 -0
- bluer_sbc-8.3.1/bluer_sbc/.abcli/adafruit_rgb_matrix.sh +14 -0
- bluer_sbc-8.3.1/bluer_sbc/.abcli/alias.sh +5 -0
- bluer_sbc-8.3.1/bluer_sbc/.abcli/blue_sbc.sh +11 -0
- bluer_sbc-8.3.1/bluer_sbc/.abcli/camera.sh +20 -0
- bluer_sbc-8.3.1/bluer_sbc/.abcli/grove.sh +43 -0
- bluer_sbc-8.3.1/bluer_sbc/.abcli/hat.sh +22 -0
- bluer_sbc-8.3.1/bluer_sbc/.abcli/install/adafruit_rgb_matrix.sh +15 -0
- bluer_sbc-8.3.1/bluer_sbc/.abcli/install/grove.sh +29 -0
- bluer_sbc-8.3.1/bluer_sbc/.abcli/install/lepton.sh +33 -0
- bluer_sbc-8.3.1/bluer_sbc/.abcli/install/rpi.sh +65 -0
- bluer_sbc-8.3.1/bluer_sbc/.abcli/install/scroll_phat_hd.sh +14 -0
- bluer_sbc-8.3.1/bluer_sbc/.abcli/install/sparkfun_top_phat.sh +33 -0
- bluer_sbc-8.3.1/bluer_sbc/.abcli/install/template.sh +9 -0
- bluer_sbc-8.3.1/bluer_sbc/.abcli/install/unicorn_16x16.sh +16 -0
- bluer_sbc-8.3.1/bluer_sbc/.abcli/lepton.sh +15 -0
- bluer_sbc-8.3.1/bluer_sbc/.abcli/scroll_phat_hd.sh +14 -0
- bluer_sbc-8.3.1/bluer_sbc/.abcli/session.sh +39 -0
- bluer_sbc-8.3.1/bluer_sbc/.abcli/sparkfun_top_phat.sh +27 -0
- bluer_sbc-8.3.1/bluer_sbc/.abcli/tests/README.sh +8 -0
- bluer_sbc-8.3.1/bluer_sbc/.abcli/tests/camera.sh +47 -0
- bluer_sbc-8.3.1/bluer_sbc/.abcli/tests/help.sh +65 -0
- bluer_sbc-8.3.1/bluer_sbc/.abcli/tests/version.sh +8 -0
- bluer_sbc-8.3.1/bluer_sbc/.abcli/unicorn_16x16.sh +14 -0
- bluer_sbc-8.3.1/bluer_sbc/README.py +51 -0
- bluer_sbc-8.3.1/bluer_sbc/__init__.py +17 -0
- bluer_sbc-8.3.1/bluer_sbc/__main__.py +16 -0
- bluer_sbc-8.3.1/bluer_sbc/algo/__init__.py +0 -0
- bluer_sbc-8.3.1/bluer_sbc/algo/diff.py +81 -0
- bluer_sbc-8.3.1/bluer_sbc/config.env +30 -0
- bluer_sbc-8.3.1/bluer_sbc/env.py +35 -0
- bluer_sbc-8.3.1/bluer_sbc/hardware/__init__.py +38 -0
- bluer_sbc-8.3.1/bluer_sbc/hardware/adafruit_rgb_matrix.py +30 -0
- bluer_sbc-8.3.1/bluer_sbc/hardware/display.py +112 -0
- bluer_sbc-8.3.1/bluer_sbc/hardware/grove.py +104 -0
- bluer_sbc-8.3.1/bluer_sbc/hardware/hardware.py +58 -0
- bluer_sbc-8.3.1/bluer_sbc/hardware/hat/__init__.py +0 -0
- bluer_sbc-8.3.1/bluer_sbc/hardware/hat/__main__.py +91 -0
- bluer_sbc-8.3.1/bluer_sbc/hardware/hat/abstract.py +136 -0
- bluer_sbc-8.3.1/bluer_sbc/hardware/hat/prototype.py +161 -0
- bluer_sbc-8.3.1/bluer_sbc/hardware/screen.py +17 -0
- bluer_sbc-8.3.1/bluer_sbc/hardware/scroll_phat_hd.py +35 -0
- bluer_sbc-8.3.1/bluer_sbc/hardware/sparkfun_top_phat/__init__.py +0 -0
- bluer_sbc-8.3.1/bluer_sbc/hardware/sparkfun_top_phat/__main__.py +51 -0
- bluer_sbc-8.3.1/bluer_sbc/hardware/sparkfun_top_phat/classes.py +104 -0
- bluer_sbc-8.3.1/bluer_sbc/hardware/unicorn_16x16.py +44 -0
- bluer_sbc-8.3.1/bluer_sbc/help/__init__.py +0 -0
- bluer_sbc-8.3.1/bluer_sbc/help/__main__.py +10 -0
- bluer_sbc-8.3.1/bluer_sbc/help/adafruit_rgb_matrix.py +23 -0
- bluer_sbc-8.3.1/bluer_sbc/help/camera.py +71 -0
- bluer_sbc-8.3.1/bluer_sbc/help/functions.py +52 -0
- bluer_sbc-8.3.1/bluer_sbc/help/grove.py +59 -0
- bluer_sbc-8.3.1/bluer_sbc/help/hat.py +56 -0
- bluer_sbc-8.3.1/bluer_sbc/help/lepton.py +39 -0
- bluer_sbc-8.3.1/bluer_sbc/help/scroll_phat_hd.py +23 -0
- bluer_sbc-8.3.1/bluer_sbc/help/session.py +26 -0
- bluer_sbc-8.3.1/bluer_sbc/help/sparkfun_top_phat.py +26 -0
- bluer_sbc-8.3.1/bluer_sbc/help/unicorn_16x16.py +23 -0
- bluer_sbc-8.3.1/bluer_sbc/host.py +11 -0
- bluer_sbc-8.3.1/bluer_sbc/imager/__init__.py +16 -0
- bluer_sbc-8.3.1/bluer_sbc/imager/camera/__init__.py +3 -0
- bluer_sbc-8.3.1/bluer_sbc/imager/camera/__main__.py +69 -0
- bluer_sbc-8.3.1/bluer_sbc/imager/camera/classes.py +259 -0
- bluer_sbc-8.3.1/bluer_sbc/imager/camera/constants.py +30 -0
- bluer_sbc-8.3.1/bluer_sbc/imager/classes.py +25 -0
- bluer_sbc-8.3.1/bluer_sbc/imager/lepton/__init__.py +3 -0
- bluer_sbc-8.3.1/bluer_sbc/imager/lepton/__main__.py +51 -0
- bluer_sbc-8.3.1/bluer_sbc/imager/lepton/classes.py +35 -0
- bluer_sbc-8.3.1/bluer_sbc/imager/lepton/python2.py +70 -0
- bluer_sbc-8.3.1/bluer_sbc/logger.py +5 -0
- bluer_sbc-8.3.1/bluer_sbc/sample.env +1 -0
- bluer_sbc-8.3.1/bluer_sbc/session/__init__.py +0 -0
- bluer_sbc-8.3.1/bluer_sbc/session/__main__.py +27 -0
- bluer_sbc-8.3.1/bluer_sbc/session/classes.py +318 -0
- bluer_sbc-8.3.1/bluer_sbc/session/functions.py +22 -0
- bluer_sbc-8.3.1/bluer_sbc/urls.py +1 -0
- bluer_sbc-8.3.1/bluer_sbc.egg-info/PKG-INFO +58 -0
- bluer_sbc-8.3.1/bluer_sbc.egg-info/SOURCES.txt +88 -0
- bluer_sbc-8.3.1/bluer_sbc.egg-info/dependency_links.txt +1 -0
- bluer_sbc-8.3.1/bluer_sbc.egg-info/requires.txt +2 -0
- bluer_sbc-8.3.1/bluer_sbc.egg-info/top_level.txt +1 -0
- bluer_sbc-8.3.1/pyproject.toml +6 -0
- bluer_sbc-8.3.1/requirements.txt +3 -0
- bluer_sbc-8.3.1/setup.cfg +4 -0
- bluer_sbc-8.3.1/setup.py +31 -0
bluer_sbc-8.3.1/LICENSE
ADDED
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
Creative Commons Legal Code
|
|
2
|
+
|
|
3
|
+
CC0 1.0 Universal
|
|
4
|
+
|
|
5
|
+
CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE
|
|
6
|
+
LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN
|
|
7
|
+
ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS
|
|
8
|
+
INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES
|
|
9
|
+
REGARDING THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS
|
|
10
|
+
PROVIDED HEREUNDER, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM
|
|
11
|
+
THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED
|
|
12
|
+
HEREUNDER.
|
|
13
|
+
|
|
14
|
+
Statement of Purpose
|
|
15
|
+
|
|
16
|
+
The laws of most jurisdictions throughout the world automatically confer
|
|
17
|
+
exclusive Copyright and Related Rights (defined below) upon the creator
|
|
18
|
+
and subsequent owner(s) (each and all, an "owner") of an original work of
|
|
19
|
+
authorship and/or a database (each, a "Work").
|
|
20
|
+
|
|
21
|
+
Certain owners wish to permanently relinquish those rights to a Work for
|
|
22
|
+
the purpose of contributing to a commons of creative, cultural and
|
|
23
|
+
scientific works ("Commons") that the public can reliably and without fear
|
|
24
|
+
of later claims of infringement build upon, modify, incorporate in other
|
|
25
|
+
works, reuse and redistribute as freely as possible in any form whatsoever
|
|
26
|
+
and for any purposes, including without limitation commercial purposes.
|
|
27
|
+
These owners may contribute to the Commons to promote the ideal of a free
|
|
28
|
+
culture and the further production of creative, cultural and scientific
|
|
29
|
+
works, or to gain reputation or greater distribution for their Work in
|
|
30
|
+
part through the use and efforts of others.
|
|
31
|
+
|
|
32
|
+
For these and/or other purposes and motivations, and without any
|
|
33
|
+
expectation of additional consideration or compensation, the person
|
|
34
|
+
associating CC0 with a Work (the "Affirmer"), to the extent that he or she
|
|
35
|
+
is an owner of Copyright and Related Rights in the Work, voluntarily
|
|
36
|
+
elects to apply CC0 to the Work and publicly distribute the Work under its
|
|
37
|
+
terms, with knowledge of his or her Copyright and Related Rights in the
|
|
38
|
+
Work and the meaning and intended legal effect of CC0 on those rights.
|
|
39
|
+
|
|
40
|
+
1. Copyright and Related Rights. A Work made available under CC0 may be
|
|
41
|
+
protected by copyright and related or neighboring rights ("Copyright and
|
|
42
|
+
Related Rights"). Copyright and Related Rights include, but are not
|
|
43
|
+
limited to, the following:
|
|
44
|
+
|
|
45
|
+
i. the right to reproduce, adapt, distribute, perform, display,
|
|
46
|
+
communicate, and translate a Work;
|
|
47
|
+
ii. moral rights retained by the original author(s) and/or performer(s);
|
|
48
|
+
iii. publicity and privacy rights pertaining to a person's image or
|
|
49
|
+
likeness depicted in a Work;
|
|
50
|
+
iv. rights protecting against unfair competition in regards to a Work,
|
|
51
|
+
subject to the limitations in paragraph 4(a), below;
|
|
52
|
+
v. rights protecting the extraction, dissemination, use and reuse of data
|
|
53
|
+
in a Work;
|
|
54
|
+
vi. database rights (such as those arising under Directive 96/9/EC of the
|
|
55
|
+
European Parliament and of the Council of 11 March 1996 on the legal
|
|
56
|
+
protection of databases, and under any national implementation
|
|
57
|
+
thereof, including any amended or successor version of such
|
|
58
|
+
directive); and
|
|
59
|
+
vii. other similar, equivalent or corresponding rights throughout the
|
|
60
|
+
world based on applicable law or treaty, and any national
|
|
61
|
+
implementations thereof.
|
|
62
|
+
|
|
63
|
+
2. Waiver. To the greatest extent permitted by, but not in contravention
|
|
64
|
+
of, applicable law, Affirmer hereby overtly, fully, permanently,
|
|
65
|
+
irrevocably and unconditionally waives, abandons, and surrenders all of
|
|
66
|
+
Affirmer's Copyright and Related Rights and associated claims and causes
|
|
67
|
+
of action, whether now known or unknown (including existing as well as
|
|
68
|
+
future claims and causes of action), in the Work (i) in all territories
|
|
69
|
+
worldwide, (ii) for the maximum duration provided by applicable law or
|
|
70
|
+
treaty (including future time extensions), (iii) in any current or future
|
|
71
|
+
medium and for any number of copies, and (iv) for any purpose whatsoever,
|
|
72
|
+
including without limitation commercial, advertising or promotional
|
|
73
|
+
purposes (the "Waiver"). Affirmer makes the Waiver for the benefit of each
|
|
74
|
+
member of the public at large and to the detriment of Affirmer's heirs and
|
|
75
|
+
successors, fully intending that such Waiver shall not be subject to
|
|
76
|
+
revocation, rescission, cancellation, termination, or any other legal or
|
|
77
|
+
equitable action to disrupt the quiet enjoyment of the Work by the public
|
|
78
|
+
as contemplated by Affirmer's express Statement of Purpose.
|
|
79
|
+
|
|
80
|
+
3. Public License Fallback. Should any part of the Waiver for any reason
|
|
81
|
+
be judged legally invalid or ineffective under applicable law, then the
|
|
82
|
+
Waiver shall be preserved to the maximum extent permitted taking into
|
|
83
|
+
account Affirmer's express Statement of Purpose. In addition, to the
|
|
84
|
+
extent the Waiver is so judged Affirmer hereby grants to each affected
|
|
85
|
+
person a royalty-free, non transferable, non sublicensable, non exclusive,
|
|
86
|
+
irrevocable and unconditional license to exercise Affirmer's Copyright and
|
|
87
|
+
Related Rights in the Work (i) in all territories worldwide, (ii) for the
|
|
88
|
+
maximum duration provided by applicable law or treaty (including future
|
|
89
|
+
time extensions), (iii) in any current or future medium and for any number
|
|
90
|
+
of copies, and (iv) for any purpose whatsoever, including without
|
|
91
|
+
limitation commercial, advertising or promotional purposes (the
|
|
92
|
+
"License"). The License shall be deemed effective as of the date CC0 was
|
|
93
|
+
applied by Affirmer to the Work. Should any part of the License for any
|
|
94
|
+
reason be judged legally invalid or ineffective under applicable law, such
|
|
95
|
+
partial invalidity or ineffectiveness shall not invalidate the remainder
|
|
96
|
+
of the License, and in such case Affirmer hereby affirms that he or she
|
|
97
|
+
will not (i) exercise any of his or her remaining Copyright and Related
|
|
98
|
+
Rights in the Work or (ii) assert any associated claims and causes of
|
|
99
|
+
action with respect to the Work, in either case contrary to Affirmer's
|
|
100
|
+
express Statement of Purpose.
|
|
101
|
+
|
|
102
|
+
4. Limitations and Disclaimers.
|
|
103
|
+
|
|
104
|
+
a. No trademark or patent rights held by Affirmer are waived, abandoned,
|
|
105
|
+
surrendered, licensed or otherwise affected by this document.
|
|
106
|
+
b. Affirmer offers the Work as-is and makes no representations or
|
|
107
|
+
warranties of any kind concerning the Work, express, implied,
|
|
108
|
+
statutory or otherwise, including without limitation warranties of
|
|
109
|
+
title, merchantability, fitness for a particular purpose, non
|
|
110
|
+
infringement, or the absence of latent or other defects, accuracy, or
|
|
111
|
+
the present or absence of errors, whether or not discoverable, all to
|
|
112
|
+
the greatest extent permissible under applicable law.
|
|
113
|
+
c. Affirmer disclaims responsibility for clearing rights of other persons
|
|
114
|
+
that may apply to the Work or any use thereof, including without
|
|
115
|
+
limitation any person's Copyright and Related Rights in the Work.
|
|
116
|
+
Further, Affirmer disclaims responsibility for obtaining any necessary
|
|
117
|
+
consents, permissions or other rights required for any use of the
|
|
118
|
+
Work.
|
|
119
|
+
d. Affirmer understands and acknowledges that Creative Commons is not a
|
|
120
|
+
party to this document and has no duty or obligation with respect to
|
|
121
|
+
this CC0 or use of the Work.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
include requirements.txt
|
bluer_sbc-8.3.1/PKG-INFO
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: bluer_sbc
|
|
3
|
+
Version: 8.3.1
|
|
4
|
+
Summary: 🌀 AI for single board computers.
|
|
5
|
+
Home-page: https://github.com/kamangir/bluer-sbc
|
|
6
|
+
Author: Arash Abadpour (Kamangir)
|
|
7
|
+
Author-email: arash@kamangir.net
|
|
8
|
+
License: Public Domain
|
|
9
|
+
Classifier: Programming Language :: Python :: 3
|
|
10
|
+
Classifier: Programming Language :: Unix Shell
|
|
11
|
+
Classifier: License :: Public Domain
|
|
12
|
+
Classifier: Operating System :: OS Independent
|
|
13
|
+
Description-Content-Type: text/markdown
|
|
14
|
+
License-File: LICENSE
|
|
15
|
+
Requires-Dist: bluer_ai
|
|
16
|
+
Requires-Dist: bluer_sbc
|
|
17
|
+
Dynamic: author
|
|
18
|
+
Dynamic: author-email
|
|
19
|
+
Dynamic: classifier
|
|
20
|
+
Dynamic: description
|
|
21
|
+
Dynamic: description-content-type
|
|
22
|
+
Dynamic: home-page
|
|
23
|
+
Dynamic: license
|
|
24
|
+
Dynamic: license-file
|
|
25
|
+
Dynamic: requires-dist
|
|
26
|
+
Dynamic: summary
|
|
27
|
+
|
|
28
|
+
# 🌀 bluer-sbc
|
|
29
|
+
|
|
30
|
+
🌀 `bluer-sbc` is a [`bluer-ai`](https://github.com/kamangir/bluer-ai) plugin for edge computing on [single board computers](https://github.com/kamangir/blue-bracket).
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
pip install bluer_sbc
|
|
34
|
+
|
|
35
|
+
# @env dot list
|
|
36
|
+
@env dot cp <env-name> local
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
| | | | |
|
|
40
|
+
| --- | --- | --- | --- |
|
|
41
|
+
| [](https://github.com/kamangir/blue-bracket/blob/main/designs/blue3.md) | [](https://github.com/kamangir/blue-bracket/blob/main/designs/chenar-grove.md) | [](https://github.com/kamangir/blue-bracket/blob/main/designs/cube.md) | [](https://github.com/kamangir/blue-bracket/blob/main/designs/eye_nano.md) |
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
---
|
|
46
|
+
|
|
47
|
+
> 🌀 [`blue-sbc`](https://github.com/kamangir/blue-sbc) for the [Global South](https://github.com/kamangir/bluer-south).
|
|
48
|
+
|
|
49
|
+
---
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
[](https://github.com/kamangir/bluer-sbc/actions/workflows/pylint.yml) [](https://github.com/kamangir/bluer-sbc/actions/workflows/pytest.yml) [](https://github.com/kamangir/bluer-sbc/actions/workflows/bashtest.yml) [](https://pypi.org/project/bluer-sbc/) [](https://pypistats.org/packages/bluer-sbc)
|
|
53
|
+
|
|
54
|
+
built by 🌀 [`bluer_options-5.32.1`](https://github.com/kamangir/awesome-bash-cli), based on 🌀 [`bluer_sbc-8.3.1`](https://github.com/kamangir/bluer-sbc).
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
built by 🌀 [`blueness-3.96.1`](https://github.com/kamangir/blueness).
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
# 🌀 bluer-sbc
|
|
2
|
+
|
|
3
|
+
🌀 `bluer-sbc` is a [`bluer-ai`](https://github.com/kamangir/bluer-ai) plugin for edge computing on [single board computers](https://github.com/kamangir/blue-bracket).
|
|
4
|
+
|
|
5
|
+
```bash
|
|
6
|
+
pip install bluer_sbc
|
|
7
|
+
|
|
8
|
+
# @env dot list
|
|
9
|
+
@env dot cp <env-name> local
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
| | | | |
|
|
13
|
+
| --- | --- | --- | --- |
|
|
14
|
+
| [](https://github.com/kamangir/blue-bracket/blob/main/designs/blue3.md) | [](https://github.com/kamangir/blue-bracket/blob/main/designs/chenar-grove.md) | [](https://github.com/kamangir/blue-bracket/blob/main/designs/cube.md) | [](https://github.com/kamangir/blue-bracket/blob/main/designs/eye_nano.md) |
|
|
15
|
+
|
|
16
|
+
```mermaid
|
|
17
|
+
graph LR
|
|
18
|
+
camera["@sbc<br><camera><br>capture|preview<br>image|video"]
|
|
19
|
+
|
|
20
|
+
hardware_validate["@sbc<br><hardware><br>validate<br><options>"]
|
|
21
|
+
|
|
22
|
+
session_start["@sbc<br>session<br>start"]
|
|
23
|
+
|
|
24
|
+
object["📂 object"]:::folder
|
|
25
|
+
camera_hardware["👁️🗨️ camera"]:::folder
|
|
26
|
+
hardware["🖱️ hardware"]:::folder
|
|
27
|
+
UI["💻 UI"]:::folder
|
|
28
|
+
|
|
29
|
+
camera_hardware --> camera
|
|
30
|
+
camera --> object
|
|
31
|
+
camera --> UI
|
|
32
|
+
|
|
33
|
+
hardware --> hardware_validate
|
|
34
|
+
hardware_validate --> hardware
|
|
35
|
+
hardware_validate --> UI
|
|
36
|
+
|
|
37
|
+
hardware --> session_start
|
|
38
|
+
session_start --> hardware
|
|
39
|
+
camera_hardware --> session_start
|
|
40
|
+
session_start --> object
|
|
41
|
+
session_start --> UI
|
|
42
|
+
|
|
43
|
+
classDef folder fill:#999,stroke:#333,stroke-width:2px;
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
---
|
|
47
|
+
|
|
48
|
+
> 🌀 [`blue-sbc`](https://github.com/kamangir/blue-sbc) for the [Global South](https://github.com/kamangir/bluer-south).
|
|
49
|
+
|
|
50
|
+
---
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
[](https://github.com/kamangir/bluer-sbc/actions/workflows/pylint.yml) [](https://github.com/kamangir/bluer-sbc/actions/workflows/pytest.yml) [](https://github.com/kamangir/bluer-sbc/actions/workflows/bashtest.yml) [](https://pypi.org/project/bluer-sbc/) [](https://pypistats.org/packages/bluer-sbc)
|
|
54
|
+
|
|
55
|
+
built by 🌀 [`bluer_options-5.32.1`](https://github.com/kamangir/awesome-bash-cli), based on 🌀 [`bluer_sbc-8.3.1`](https://github.com/kamangir/bluer-sbc).
|
|
56
|
+
|
|
57
|
+
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
#! /usr/bin/env bash
|
|
2
|
+
|
|
3
|
+
bluer_ai_source_caller_suffix_path /tests
|
|
4
|
+
|
|
5
|
+
bluer_ai_env_dot_load \
|
|
6
|
+
caller,filename=config.env,suffix=/..
|
|
7
|
+
|
|
8
|
+
bluer_ai_env_dot_load \
|
|
9
|
+
caller,plugin=bluer_sbc,suffix=/../..
|
|
10
|
+
|
|
11
|
+
[[ "$abcli_is_github_workflow" == true ]] &&
|
|
12
|
+
export BLUER_SBC_SESSION_IMAGER_ENABLED=0
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
#! /usr/bin/env bash
|
|
2
|
+
|
|
3
|
+
function bluer_sbc_adafruit_rgb_matrix() {
|
|
4
|
+
local task=$1
|
|
5
|
+
|
|
6
|
+
if [ "$task" == "validate" ]; then
|
|
7
|
+
pushd $abcli_path_git/Raspberry-Pi-Installer-Scripts/rpi-rgb-led-matrix/examples-api-use >/dev/null
|
|
8
|
+
sudo ./demo -D0
|
|
9
|
+
popd >/dev/null
|
|
10
|
+
return
|
|
11
|
+
fi
|
|
12
|
+
|
|
13
|
+
abcli_log_error "@sbc: adafruit_rgb_matrix: $task: command not found."
|
|
14
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
#! /usr/bin/env bash
|
|
2
|
+
|
|
3
|
+
function bluer_sbc_camera() {
|
|
4
|
+
local task=$1
|
|
5
|
+
|
|
6
|
+
if [[ "|capture|preview|" == *"|$task|"* ]]; then
|
|
7
|
+
local options=$2
|
|
8
|
+
local capture_video=$(abcli_option_int "$options" video 0)
|
|
9
|
+
[[ "$capture_video" == 1 ]] &&
|
|
10
|
+
task=capture_video
|
|
11
|
+
|
|
12
|
+
python3 -m bluer_sbc.imager.camera \
|
|
13
|
+
$task \
|
|
14
|
+
"${@:3}"
|
|
15
|
+
|
|
16
|
+
return
|
|
17
|
+
fi
|
|
18
|
+
|
|
19
|
+
python3 -m bluer_sbc.imager.camera "$@"
|
|
20
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
#! /usr/bin/env bash
|
|
2
|
+
|
|
3
|
+
function bluer_sbc_grove() {
|
|
4
|
+
local task=$1
|
|
5
|
+
|
|
6
|
+
if [ "$task" == "info" ]; then
|
|
7
|
+
# https://learn.adafruit.com/scanning-i2c-addresses/raspberry-pi
|
|
8
|
+
i2cdetect -y 1
|
|
9
|
+
return
|
|
10
|
+
fi
|
|
11
|
+
|
|
12
|
+
if [ "$task" == "validate" ]; then
|
|
13
|
+
local what=$(abcli_clarify_input $2 button)
|
|
14
|
+
|
|
15
|
+
local args=""
|
|
16
|
+
local filepath="grove.py/grove"
|
|
17
|
+
if [ "$what" == "adc" ]; then
|
|
18
|
+
local filename="adc"
|
|
19
|
+
elif [ "$what" == "button" ]; then
|
|
20
|
+
filename="grove_button"
|
|
21
|
+
args="24"
|
|
22
|
+
elif [ "$what" == "oled_128x64" ]; then
|
|
23
|
+
filepath="Seeed_Python_SSD1315/examples"
|
|
24
|
+
filename="image"
|
|
25
|
+
else
|
|
26
|
+
abcli_log_error "@sbc: grove: $task: $what: hardware not found."
|
|
27
|
+
return
|
|
28
|
+
fi
|
|
29
|
+
|
|
30
|
+
filename=$(abcli_clarify_input $3 $filename)
|
|
31
|
+
|
|
32
|
+
local grove_path=$abcli_path_git/$filepath
|
|
33
|
+
|
|
34
|
+
abcli_log "validating grove $what: $grove_path/$filename.py $args"
|
|
35
|
+
pushd $grove_path >/dev/null
|
|
36
|
+
python3 $filename.py $args
|
|
37
|
+
popd >/dev/null
|
|
38
|
+
|
|
39
|
+
return
|
|
40
|
+
fi
|
|
41
|
+
|
|
42
|
+
abcli_log_error "@sbc: grove: $task: command not found."
|
|
43
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
#! /usr/bin/env bash
|
|
2
|
+
|
|
3
|
+
function bluer_sbc_hat() {
|
|
4
|
+
local task=$1
|
|
5
|
+
|
|
6
|
+
if [[ "|input|validate|" == *"|$task|"* ]]; then
|
|
7
|
+
python3 -m bluer_sbc.hardware.hat \
|
|
8
|
+
$task \
|
|
9
|
+
"${@:2}"
|
|
10
|
+
return
|
|
11
|
+
fi
|
|
12
|
+
|
|
13
|
+
if [ "$task" == "output" ]; then
|
|
14
|
+
python3 -m bluer_sbc.hardware.hat \
|
|
15
|
+
output \
|
|
16
|
+
--outputs "$2" \
|
|
17
|
+
"${@:3}"
|
|
18
|
+
return
|
|
19
|
+
fi
|
|
20
|
+
|
|
21
|
+
python3 -m bluer_sbc.hardware.hat "$@"
|
|
22
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
#! /usr/bin/env bash
|
|
2
|
+
|
|
3
|
+
function abcli_install_adafruit_rgb_matrix() {
|
|
4
|
+
pushd $abcli_path_git >/dev/null
|
|
5
|
+
git clone https://github.com/adafruit/Raspberry-Pi-Installer-Scripts.git
|
|
6
|
+
cd Raspberry-Pi-Installer-Scripts
|
|
7
|
+
sudo bash ./rgb-matrix.sh
|
|
8
|
+
popd >/dev/null
|
|
9
|
+
|
|
10
|
+
sudo setcap 'cap_sys_nice=eip' /usr/bin/python3.7
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
if [ "$BLUER_SBC_HARDWARE_KIND" == "adafruit_rgb_matrix" ]; then
|
|
14
|
+
abcli_install_module adafruit_rgb_matrix 106
|
|
15
|
+
fi
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
#! /usr/bin/env bash
|
|
2
|
+
|
|
3
|
+
function abcli_install_grove() {
|
|
4
|
+
pushd $abcli_path_git >/dev/null
|
|
5
|
+
|
|
6
|
+
# https://wiki.seeedstudio.com/Grove_Base_Kit_for_Raspberry_Pi/
|
|
7
|
+
curl -L https://github.com/Seeed-Studio/grove.py/raw/master/install.sh \
|
|
8
|
+
--output grove_install.sh
|
|
9
|
+
sudo bash ./grove_install.sh
|
|
10
|
+
|
|
11
|
+
git clone https://github.com/kamangir/grove.py
|
|
12
|
+
cd grove.py
|
|
13
|
+
sudo pip3 install -e .
|
|
14
|
+
|
|
15
|
+
# https://wiki.seeedstudio.com/Grove-OLED-Yellow%26Blue-Display-0.96-%28SSD1315%29_V1.0/
|
|
16
|
+
sudo apt-get install -y python-smbus
|
|
17
|
+
sudo apt-get install -y i2c-tools
|
|
18
|
+
sudo pip3 install Adafruit-BBIO
|
|
19
|
+
sudo pip3 install Adafruit-SSD1306
|
|
20
|
+
|
|
21
|
+
cd ..
|
|
22
|
+
git clone https://github.com/IcingTomato/Seeed_Python_SSD1315.git
|
|
23
|
+
|
|
24
|
+
popd >/dev/null
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
if [ "$BLUER_SBC_HARDWARE_KIND" == "grove" ]; then
|
|
28
|
+
abcli_install_module grove 106
|
|
29
|
+
fi
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
#! /usr/bin/env bash
|
|
2
|
+
|
|
3
|
+
function abcli_install_lepton() {
|
|
4
|
+
sudo apt-get update --allow-releaseinfo-change
|
|
5
|
+
|
|
6
|
+
cd ~
|
|
7
|
+
sudo apt-get --yes --force-yes install bison flex aptitude qt4-qmake libqt4-dev
|
|
8
|
+
sudo aptitude --yes --force-yes install libssl-dev
|
|
9
|
+
|
|
10
|
+
# To clone linux for raspberry pi
|
|
11
|
+
git clone --depth=1 https://github.com/raspberrypi/linux
|
|
12
|
+
|
|
13
|
+
# To setup kernel
|
|
14
|
+
cd ~/linux
|
|
15
|
+
KERNEL=kernel7
|
|
16
|
+
make bcm2709_defconfig
|
|
17
|
+
sudo sed -i '$akernel=kernel7.img' /boot/config.txt
|
|
18
|
+
|
|
19
|
+
# To build and install kernel modules
|
|
20
|
+
make -j4 zImage modules dtbs
|
|
21
|
+
sudo make modules_install
|
|
22
|
+
sudo cp arch/arm/boot/dts/*.dtb /boot/
|
|
23
|
+
sudo cp arch/arm/boot/dts/overlays/*.dtb* /boot/overlays/
|
|
24
|
+
sudo cp arch/arm/boot/dts/overlays/README /boot/overlays/
|
|
25
|
+
sudo cp arch/arm/boot/zImage /boot/$KERNEL.img
|
|
26
|
+
|
|
27
|
+
sudo apt --yes --force-yes install python-opencv
|
|
28
|
+
sudo pip install pylepton
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
if [ "$BLUER_SBC_SESSION_IMAGER" == "lepton" ]; then
|
|
32
|
+
abcli_install_module lepton 102
|
|
33
|
+
fi
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
#! /usr/bin/env bash
|
|
2
|
+
|
|
3
|
+
function abcli_install_rpi() {
|
|
4
|
+
pushd $abcli_path_git > /dev/null
|
|
5
|
+
|
|
6
|
+
# https://docs.donkeycar.com/guide/robot_sbc/setup_raspberry_pi/
|
|
7
|
+
sudo apt-get update
|
|
8
|
+
sudo apt-get -y upgrade
|
|
9
|
+
|
|
10
|
+
sudo apt-get --yes --force-yes install build-essential python3 python3-dev python3-pip \
|
|
11
|
+
python3-virtualenv python3-numpy python3-picamera python3-pandas python3-rpi.gpio \
|
|
12
|
+
i2c-tools avahi-utils joystick libopenjp2-7-dev libtiff5-dev gfortran libatlas-base-dev \
|
|
13
|
+
libopenblas-dev libhdf5-serial-dev libgeos-dev git ntp
|
|
14
|
+
|
|
15
|
+
sudo apt-get --yes --force-yes install libilmbase-dev libopenexr-dev libgstreamer1.0-dev \
|
|
16
|
+
libjasper-dev libwebp-dev libatlas-base-dev libavcodec-dev libavformat-dev libswscale-dev \
|
|
17
|
+
libqtgui4 libqt4-test
|
|
18
|
+
|
|
19
|
+
# https://rtcbot.readthedocs.io/en/latest/installing.html
|
|
20
|
+
sudo apt-get --yes --force-yes install python3-numpy python3-cffi python3-aiohttp \
|
|
21
|
+
libavformat-dev libavcodec-dev libavdevice-dev libavutil-dev \
|
|
22
|
+
libswscale-dev libswresample-dev libavfilter-dev libopus-dev \
|
|
23
|
+
libvpx-dev pkg-config libsrtp2-dev python3-opencv pulseaudio
|
|
24
|
+
|
|
25
|
+
cd
|
|
26
|
+
python3 -m virtualenv -p python3 env --system-site-packages
|
|
27
|
+
echo "source env/bin/activate" >> ~/.bashrc
|
|
28
|
+
source env/bin/activate
|
|
29
|
+
|
|
30
|
+
cd git
|
|
31
|
+
git clone https://github.com/autorope/donkeycar
|
|
32
|
+
cd donkeycar
|
|
33
|
+
git checkout master
|
|
34
|
+
pip3 install -e .[pi]
|
|
35
|
+
|
|
36
|
+
pip3 install numpy --upgrade
|
|
37
|
+
|
|
38
|
+
cd
|
|
39
|
+
curl -sc /tmp/cookie "https://drive.google.com/uc?export=download&id=1DCfoSwlsdX9X4E3pLClE1z0fvw8tFESP" > /dev/null
|
|
40
|
+
CODE="$(awk '/_warning_/ {print $NF}' /tmp/cookie)"
|
|
41
|
+
curl -Lb /tmp/cookie "https://drive.google.com/uc?export=download&confirm=${CODE}&id=1DCfoSwlsdX9X4E3pLClE1z0fvw8tFESP" -o tensorflow-2.2.0-cp37-cp37m-linux_armv7l.whl
|
|
42
|
+
pip3 install tensorflow-2.2.0-cp37-cp37m-linux_armv7l.whl
|
|
43
|
+
|
|
44
|
+
sudo apt --yes --force-yes install python3-opencv
|
|
45
|
+
|
|
46
|
+
pip3 install PyMySQL==0.10.1
|
|
47
|
+
pip3 install tqdm
|
|
48
|
+
pip3 install boto3
|
|
49
|
+
pip3 install dill
|
|
50
|
+
pip3 install imutils
|
|
51
|
+
|
|
52
|
+
# https://rtcbot.readthedocs.io/en/latest/installing.html
|
|
53
|
+
# pip install rtcbot
|
|
54
|
+
|
|
55
|
+
pip3 install awscli --upgrade
|
|
56
|
+
if [[ $PATH != *"/home/pi/.local/bin"* ]]; then
|
|
57
|
+
export PATH=/home/pi/.local/bin:$PATH
|
|
58
|
+
fi
|
|
59
|
+
|
|
60
|
+
popd > /dev/null
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
if [ "$abcli_is_rpi" == true ] ; then
|
|
64
|
+
abcli_install_module rpi 109
|
|
65
|
+
fi
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
#! /usr/bin/env bash
|
|
2
|
+
|
|
3
|
+
function abcli_install_scroll_phat_hd() {
|
|
4
|
+
pushd $abcli_path_home/git >/dev/null
|
|
5
|
+
git clone https://github.com/pimoroni/scroll-phat-hd
|
|
6
|
+
popd >/dev/null
|
|
7
|
+
|
|
8
|
+
# https://github.com/pimoroni/scroll-phat-hd
|
|
9
|
+
sudo apt-get install python3-scrollphathd
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
if [ "$BLUER_SBC_HARDWARE_KIND" == "scroll_phat_hd" ]; then
|
|
13
|
+
abcli_install_module scroll_phat_hd 102
|
|
14
|
+
fi
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
#! /usr/bin/env bash
|
|
2
|
+
|
|
3
|
+
function abcli_install_sparkfun_top_phat() {
|
|
4
|
+
# https://learn.sparkfun.com/tutorials/sparkfun-top-phat-hookup-guide/button-controller
|
|
5
|
+
sudo pip3 install sparkfun-qwiic
|
|
6
|
+
|
|
7
|
+
# https://learn.sparkfun.com/tutorials/sparkfun-top-phat-hookup-guide/ws2812b-leds
|
|
8
|
+
sudo pip3 install adafruit-circuitpython-neopixel
|
|
9
|
+
|
|
10
|
+
# https://github.com/rpi-ws281x/rpi-ws281x-python
|
|
11
|
+
# https://github.com/jgarff/rpi_ws281x
|
|
12
|
+
# https://stackoverflow.com/a/53045690/17619982
|
|
13
|
+
sudo pip3 install rpi_ws281x
|
|
14
|
+
|
|
15
|
+
pushd $abcli_path_home/git >/dev/null
|
|
16
|
+
git clone https://github.com/sparkfun/Top_pHAT_Button_Py
|
|
17
|
+
popd >/dev/null
|
|
18
|
+
|
|
19
|
+
# https://learn.sparkfun.com/tutorials/sparkfun-top-phat-hookup-guide/24-tft-display-linux-54-update
|
|
20
|
+
pushd $abcli_path_home >/dev/null
|
|
21
|
+
curl -L https://cdn.sparkfun.com/assets/learn_tutorials/1/1/7/0/sfe-topphat-overlay.dts \
|
|
22
|
+
--output ./sfe-topphat-overlay.dts
|
|
23
|
+
dtc -@ -I dts -O dtb -o rpi-display.dtbo sfe-topphat-overlay.dts
|
|
24
|
+
sudo cp rpi-display.dtbo /boot/overlays
|
|
25
|
+
popd >/dev/null
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
if [ "$BLUER_SBC_HARDWARE_KIND" == "sparkfun-top-phat" ]; then
|
|
29
|
+
abcli_install_module sparkfun_top_phat 104
|
|
30
|
+
|
|
31
|
+
# https://learn.sparkfun.com/tutorials/sparkfun-top-phat-hookup-guide/24-tft-display-archived
|
|
32
|
+
con2fbmap 1 1
|
|
33
|
+
fi
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
#! /usr/bin/env bash
|
|
2
|
+
|
|
3
|
+
function abcli_install_unicorn_16x16() {
|
|
4
|
+
pushd $abcli_path_git >/dev/null
|
|
5
|
+
git clone https://github.com/pimoroni/unicorn-hat-hd
|
|
6
|
+
popd >/dev/null
|
|
7
|
+
|
|
8
|
+
# https://github.com/pimoroni/unicorn-hat-hd
|
|
9
|
+
sudo raspi-config nonint do_spi 0
|
|
10
|
+
sudo apt-get --yes --force-yes install python3-pip python3-dev python3-spidev
|
|
11
|
+
sudo pip3 install unicornhathd
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
if [ "$BLUER_SBC_HARDWARE_KIND" == "unicorn_16x16" ]; then
|
|
15
|
+
abcli_install_module unicorn_16x16 101
|
|
16
|
+
fi
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
#! /usr/bin/env bash
|
|
2
|
+
|
|
3
|
+
function bluer_sbc_lepton() {
|
|
4
|
+
local task=$1
|
|
5
|
+
|
|
6
|
+
if [[ "|capture|preview|" == *"|$task|"* ]]; then
|
|
7
|
+
python3 -m bluer_sbc.imager.lepton \
|
|
8
|
+
$task \
|
|
9
|
+
--output_path $abcli_object_path \
|
|
10
|
+
"${@:2}"
|
|
11
|
+
return
|
|
12
|
+
fi
|
|
13
|
+
|
|
14
|
+
python3 -m bluer_sbc.imager.lepton "$@"
|
|
15
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
#! /usr/bin/env bash
|
|
2
|
+
|
|
3
|
+
function bluer_sbc_scroll_phat_hd() {
|
|
4
|
+
local task=$1
|
|
5
|
+
|
|
6
|
+
if [ "$task" == "validate" ]; then
|
|
7
|
+
pushd $abcli_path_git/scroll-phat-hd/examples >/dev/null
|
|
8
|
+
python3 plasma.py
|
|
9
|
+
popd >/dev/null
|
|
10
|
+
return
|
|
11
|
+
fi
|
|
12
|
+
|
|
13
|
+
abcli_log_error "@sbc: scroll_phat_hd: $task: command not found."
|
|
14
|
+
}
|