bluer-sbc 9.195.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.
- bluer_sbc-9.195.1/LICENSE +121 -0
- bluer_sbc-9.195.1/MANIFEST.in +1 -0
- bluer_sbc-9.195.1/PKG-INFO +73 -0
- bluer_sbc-9.195.1/README.md +46 -0
- bluer_sbc-9.195.1/bluer_sbc/.abcli/abcli.sh +12 -0
- bluer_sbc-9.195.1/bluer_sbc/.abcli/actions.sh +14 -0
- bluer_sbc-9.195.1/bluer_sbc/.abcli/adafruit_rgb_matrix.sh +14 -0
- bluer_sbc-9.195.1/bluer_sbc/.abcli/alias.sh +9 -0
- bluer_sbc-9.195.1/bluer_sbc/.abcli/bluer_sbc.sh +13 -0
- bluer_sbc-9.195.1/bluer_sbc/.abcli/camera.sh +20 -0
- bluer_sbc-9.195.1/bluer_sbc/.abcli/grove.sh +43 -0
- bluer_sbc-9.195.1/bluer_sbc/.abcli/hat.sh +22 -0
- bluer_sbc-9.195.1/bluer_sbc/.abcli/install/adafruit_rgb_matrix.sh +15 -0
- bluer_sbc-9.195.1/bluer_sbc/.abcli/install/grove.sh +29 -0
- bluer_sbc-9.195.1/bluer_sbc/.abcli/install/lepton.sh +33 -0
- bluer_sbc-9.195.1/bluer_sbc/.abcli/install/scroll_phat_hd.sh +14 -0
- bluer_sbc-9.195.1/bluer_sbc/.abcli/install/sparkfun_top_phat.sh +33 -0
- bluer_sbc-9.195.1/bluer_sbc/.abcli/install/template.sh +9 -0
- bluer_sbc-9.195.1/bluer_sbc/.abcli/install/unicorn_16x16.sh +16 -0
- bluer_sbc-9.195.1/bluer_sbc/.abcli/lepton.sh +15 -0
- bluer_sbc-9.195.1/bluer_sbc/.abcli/rpi/fake_display.sh +19 -0
- bluer_sbc-9.195.1/bluer_sbc/.abcli/rpi.sh +16 -0
- bluer_sbc-9.195.1/bluer_sbc/.abcli/sbc/parts/adjust.sh +14 -0
- bluer_sbc-9.195.1/bluer_sbc/.abcli/sbc/parts/cd.sh +5 -0
- bluer_sbc-9.195.1/bluer_sbc/.abcli/sbc/parts.sh +15 -0
- bluer_sbc-9.195.1/bluer_sbc/.abcli/scroll_phat_hd.sh +14 -0
- bluer_sbc-9.195.1/bluer_sbc/.abcli/seed/headless_rpi.sh +51 -0
- bluer_sbc-9.195.1/bluer_sbc/.abcli/seed/headless_rpi_64_bit.sh +39 -0
- bluer_sbc-9.195.1/bluer_sbc/.abcli/seed/headless_ubuntu_rpi.sh +59 -0
- bluer_sbc-9.195.1/bluer_sbc/.abcli/seed/jetson.sh +31 -0
- bluer_sbc-9.195.1/bluer_sbc/.abcli/seed/rpi.sh +31 -0
- bluer_sbc-9.195.1/bluer_sbc/.abcli/seed/rpi_64_bit.sh +36 -0
- bluer_sbc-9.195.1/bluer_sbc/.abcli/seed/swallow_raspbian.sh +13 -0
- bluer_sbc-9.195.1/bluer_sbc/.abcli/seed.sh +3 -0
- bluer_sbc-9.195.1/bluer_sbc/.abcli/session.sh +37 -0
- bluer_sbc-9.195.1/bluer_sbc/.abcli/sparkfun_top_phat.sh +27 -0
- bluer_sbc-9.195.1/bluer_sbc/.abcli/tests/README.sh +8 -0
- bluer_sbc-9.195.1/bluer_sbc/.abcli/tests/camera.sh +47 -0
- bluer_sbc-9.195.1/bluer_sbc/.abcli/tests/help.sh +67 -0
- bluer_sbc-9.195.1/bluer_sbc/.abcli/tests/parts_adjust.sh +13 -0
- bluer_sbc-9.195.1/bluer_sbc/.abcli/tests/seed.sh +20 -0
- bluer_sbc-9.195.1/bluer_sbc/.abcli/tests/version.sh +8 -0
- bluer_sbc-9.195.1/bluer_sbc/.abcli/unicorn_16x16.sh +14 -0
- bluer_sbc-9.195.1/bluer_sbc/README/__init__.py +0 -0
- bluer_sbc-9.195.1/bluer_sbc/README/aliases.py +11 -0
- bluer_sbc-9.195.1/bluer_sbc/README/build.py +29 -0
- bluer_sbc-9.195.1/bluer_sbc/README/design.py +40 -0
- bluer_sbc-9.195.1/bluer_sbc/README/designs/__init__.py +28 -0
- bluer_sbc-9.195.1/bluer_sbc/README/designs/adapter_bus.py +59 -0
- bluer_sbc-9.195.1/bluer_sbc/README/designs/battery_bus.py +52 -0
- bluer_sbc-9.195.1/bluer_sbc/README/designs/blue_bracket.py +33 -0
- bluer_sbc-9.195.1/bluer_sbc/README/designs/bryce.py +28 -0
- bluer_sbc-9.195.1/bluer_sbc/README/designs/cheshmak.py +29 -0
- bluer_sbc-9.195.1/bluer_sbc/README/designs/consts.py +1 -0
- bluer_sbc-9.195.1/bluer_sbc/README/designs/nafha.py +57 -0
- bluer_sbc-9.195.1/bluer_sbc/README/designs/regulated_bus.py +78 -0
- bluer_sbc-9.195.1/bluer_sbc/README/designs/shelter.py +63 -0
- bluer_sbc-9.195.1/bluer_sbc/README/designs/swallow.py +46 -0
- bluer_sbc-9.195.1/bluer_sbc/README/designs/swallow_head.py +89 -0
- bluer_sbc-9.195.1/bluer_sbc/README/designs/template.py +38 -0
- bluer_sbc-9.195.1/bluer_sbc/README/designs/ultrasonic_sensor_tester.py +27 -0
- bluer_sbc-9.195.1/bluer_sbc/README/parts.py +29 -0
- bluer_sbc-9.195.1/bluer_sbc/README/root.py +35 -0
- bluer_sbc-9.195.1/bluer_sbc/README/shortcuts.py +18 -0
- bluer_sbc-9.195.1/bluer_sbc/ROS/__init__.py +1 -0
- bluer_sbc-9.195.1/bluer_sbc/__init__.py +17 -0
- bluer_sbc-9.195.1/bluer_sbc/__main__.py +17 -0
- bluer_sbc-9.195.1/bluer_sbc/algo/__init__.py +0 -0
- bluer_sbc-9.195.1/bluer_sbc/algo/diff.py +79 -0
- bluer_sbc-9.195.1/bluer_sbc/config.env +32 -0
- bluer_sbc-9.195.1/bluer_sbc/env.py +44 -0
- bluer_sbc-9.195.1/bluer_sbc/hardware/__init__.py +36 -0
- bluer_sbc-9.195.1/bluer_sbc/hardware/adafruit_rgb_matrix.py +30 -0
- bluer_sbc-9.195.1/bluer_sbc/hardware/display.py +112 -0
- bluer_sbc-9.195.1/bluer_sbc/hardware/grove.py +104 -0
- bluer_sbc-9.195.1/bluer_sbc/hardware/hardware.py +58 -0
- bluer_sbc-9.195.1/bluer_sbc/hardware/hat/__init__.py +0 -0
- bluer_sbc-9.195.1/bluer_sbc/hardware/hat/__main__.py +91 -0
- bluer_sbc-9.195.1/bluer_sbc/hardware/hat/abstract.py +136 -0
- bluer_sbc-9.195.1/bluer_sbc/hardware/hat/prototype.py +161 -0
- bluer_sbc-9.195.1/bluer_sbc/hardware/screen.py +17 -0
- bluer_sbc-9.195.1/bluer_sbc/hardware/scroll_phat_hd.py +35 -0
- bluer_sbc-9.195.1/bluer_sbc/hardware/sparkfun_top_phat/__init__.py +0 -0
- bluer_sbc-9.195.1/bluer_sbc/hardware/sparkfun_top_phat/__main__.py +51 -0
- bluer_sbc-9.195.1/bluer_sbc/hardware/sparkfun_top_phat/classes.py +104 -0
- bluer_sbc-9.195.1/bluer_sbc/hardware/unicorn_16x16.py +44 -0
- bluer_sbc-9.195.1/bluer_sbc/help/__init__.py +0 -0
- bluer_sbc-9.195.1/bluer_sbc/help/__main__.py +10 -0
- bluer_sbc-9.195.1/bluer_sbc/help/adafruit_rgb_matrix.py +23 -0
- bluer_sbc-9.195.1/bluer_sbc/help/camera.py +68 -0
- bluer_sbc-9.195.1/bluer_sbc/help/functions.py +36 -0
- bluer_sbc-9.195.1/bluer_sbc/help/grove.py +59 -0
- bluer_sbc-9.195.1/bluer_sbc/help/hat.py +56 -0
- bluer_sbc-9.195.1/bluer_sbc/help/lepton.py +39 -0
- bluer_sbc-9.195.1/bluer_sbc/help/parts.py +49 -0
- bluer_sbc-9.195.1/bluer_sbc/help/rpi.py +26 -0
- bluer_sbc-9.195.1/bluer_sbc/help/scroll_phat_hd.py +23 -0
- bluer_sbc-9.195.1/bluer_sbc/help/sparkfun_top_phat.py +26 -0
- bluer_sbc-9.195.1/bluer_sbc/help/unicorn_16x16.py +23 -0
- bluer_sbc-9.195.1/bluer_sbc/host.py +11 -0
- bluer_sbc-9.195.1/bluer_sbc/imager/__init__.py +16 -0
- bluer_sbc-9.195.1/bluer_sbc/imager/camera/__init__.py +11 -0
- bluer_sbc-9.195.1/bluer_sbc/imager/camera/__main__.py +69 -0
- bluer_sbc-9.195.1/bluer_sbc/imager/camera/constants.py +30 -0
- bluer_sbc-9.195.1/bluer_sbc/imager/camera/generic.py +208 -0
- bluer_sbc-9.195.1/bluer_sbc/imager/camera/rpi.py +112 -0
- bluer_sbc-9.195.1/bluer_sbc/imager/camera/rpi_64_bit.py +49 -0
- bluer_sbc-9.195.1/bluer_sbc/imager/classes.py +25 -0
- bluer_sbc-9.195.1/bluer_sbc/imager/lepton/__init__.py +3 -0
- bluer_sbc-9.195.1/bluer_sbc/imager/lepton/__main__.py +51 -0
- bluer_sbc-9.195.1/bluer_sbc/imager/lepton/classes.py +35 -0
- bluer_sbc-9.195.1/bluer_sbc/imager/lepton/python2.py +70 -0
- bluer_sbc-9.195.1/bluer_sbc/logger.py +5 -0
- bluer_sbc-9.195.1/bluer_sbc/parts/__init__.py +0 -0
- bluer_sbc-9.195.1/bluer_sbc/parts/__main__.py +48 -0
- bluer_sbc-9.195.1/bluer_sbc/parts/classes/db.py +233 -0
- bluer_sbc-9.195.1/bluer_sbc/parts/classes/part.py +96 -0
- bluer_sbc-9.195.1/bluer_sbc/parts/consts.py +3 -0
- bluer_sbc-9.195.1/bluer_sbc/parts/db.py +693 -0
- bluer_sbc-9.195.1/bluer_sbc/sample.env +3 -0
- bluer_sbc-9.195.1/bluer_sbc/session/__init__.py +0 -0
- bluer_sbc-9.195.1/bluer_sbc/session/__main__.py +27 -0
- bluer_sbc-9.195.1/bluer_sbc/session/classes.py +329 -0
- bluer_sbc-9.195.1/bluer_sbc/session/functions.py +22 -0
- bluer_sbc-9.195.1/bluer_sbc/urls.py +1 -0
- bluer_sbc-9.195.1/bluer_sbc.egg-info/PKG-INFO +73 -0
- bluer_sbc-9.195.1/bluer_sbc.egg-info/SOURCES.txt +132 -0
- bluer_sbc-9.195.1/bluer_sbc.egg-info/dependency_links.txt +1 -0
- bluer_sbc-9.195.1/bluer_sbc.egg-info/requires.txt +1 -0
- bluer_sbc-9.195.1/bluer_sbc.egg-info/top_level.txt +1 -0
- bluer_sbc-9.195.1/pyproject.toml +6 -0
- bluer_sbc-9.195.1/requirements.txt +1 -0
- bluer_sbc-9.195.1/setup.cfg +4 -0
- bluer_sbc-9.195.1/setup.py +36 -0
|
@@ -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
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: bluer_sbc
|
|
3
|
+
Version: 9.195.1
|
|
4
|
+
Summary: 🌀 AI for single board computers and related designs.
|
|
5
|
+
Home-page: https://github.com/kamangir/bluer-sbc
|
|
6
|
+
Author: Arash Abadpour (Kamangir)
|
|
7
|
+
Author-email: arash.abadpour@gmail.com
|
|
8
|
+
License: CC0-1.0
|
|
9
|
+
Classifier: Programming Language :: Python :: 3
|
|
10
|
+
Classifier: Programming Language :: Unix Shell
|
|
11
|
+
Classifier: Operating System :: OS Independent
|
|
12
|
+
Description-Content-Type: text/markdown
|
|
13
|
+
License-File: LICENSE
|
|
14
|
+
Requires-Dist: bluer_ai
|
|
15
|
+
Dynamic: author
|
|
16
|
+
Dynamic: author-email
|
|
17
|
+
Dynamic: classifier
|
|
18
|
+
Dynamic: description
|
|
19
|
+
Dynamic: description-content-type
|
|
20
|
+
Dynamic: home-page
|
|
21
|
+
Dynamic: license
|
|
22
|
+
Dynamic: license-file
|
|
23
|
+
Dynamic: requires-dist
|
|
24
|
+
Dynamic: summary
|
|
25
|
+
|
|
26
|
+
# 🌀 bluer-sbc
|
|
27
|
+
|
|
28
|
+
🌀 `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).
|
|
29
|
+
|
|
30
|
+
## installation
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
pip install bluer_sbc
|
|
34
|
+
|
|
35
|
+
# @env dot list
|
|
36
|
+
@env dot cp <env-name> local
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
## aliases
|
|
40
|
+
|
|
41
|
+
[@camera](https://github.com/kamangir/bluer-sbc/blob/main/bluer_sbc/docs/aliases/camera.md),
|
|
42
|
+
[@sbc rpi](https://github.com/kamangir/bluer-sbc/blob/main/bluer_sbc/docs/aliases/sbc.md),
|
|
43
|
+
[@sbc <hardware>](https://github.com/kamangir/bluer-sbc/blob/main/bluer_sbc/docs/aliases/hardware.md).
|
|
44
|
+
|
|
45
|
+
## designs
|
|
46
|
+
|
|
47
|
+
| | | |
|
|
48
|
+
| --- | --- | --- |
|
|
49
|
+
| [`swallow head`](https://github.com/kamangir/bluer-sbc/blob/main/bluer_sbc/docs/swallow-head.md) [](https://github.com/kamangir/bluer-sbc/blob/main/bluer_sbc/docs/swallow-head.md) | [`swallow`](https://github.com/kamangir/bluer-sbc/blob/main/bluer_sbc/docs/swallow.md) [](https://github.com/kamangir/bluer-sbc/blob/main/bluer_sbc/docs/swallow.md) | [`regulated bus`](https://github.com/kamangir/bluer-sbc/blob/main/bluer_sbc/docs/regulated-bus.md) [](https://github.com/kamangir/bluer-sbc/blob/main/bluer_sbc/docs/regulated-bus.md) |
|
|
50
|
+
| [`battery bus`](https://github.com/kamangir/bluer-sbc/blob/main/bluer_sbc/docs/battery-bus.md) [](https://github.com/kamangir/bluer-sbc/blob/main/bluer_sbc/docs/battery-bus.md) | [`adapter bus`](https://github.com/kamangir/bluer-sbc/blob/main/bluer_sbc/docs/adapter-bus.md) [](https://github.com/kamangir/bluer-sbc/blob/main/bluer_sbc/docs/adapter-bus.md) | [`ultrasonic-sensor-tester`](https://github.com/kamangir/bluer-sbc/blob/main/bluer_sbc/docs/ultrasonic-sensor-tester.md) [](https://github.com/kamangir/bluer-sbc/blob/main/bluer_sbc/docs/ultrasonic-sensor-tester.md) |
|
|
51
|
+
| [`bryce`](https://github.com/kamangir/bluer-sbc/blob/main/bluer_sbc/docs/bryce.md) [](https://github.com/kamangir/bluer-sbc/blob/main/bluer_sbc/docs/bryce.md) | [`cheshmak`](https://github.com/kamangir/bluer-sbc/blob/main/bluer_sbc/docs/cheshmak.md) [](https://github.com/kamangir/bluer-sbc/blob/main/bluer_sbc/docs/cheshmak.md) | [`nafha`](https://github.com/kamangir/bluer-sbc/blob/main/bluer_sbc/docs/nafha) [](https://github.com/kamangir/bluer-sbc/blob/main/bluer_sbc/docs/nafha) |
|
|
52
|
+
| [`shelter`](https://github.com/kamangir/bluer-sbc/blob/main/bluer_sbc/docs/shelter) [](https://github.com/kamangir/bluer-sbc/blob/main/bluer_sbc/docs/shelter) | [`blue3`](https://github.com/kamangir/blue-bracket/blob/main/designs/blue3.md) [](https://github.com/kamangir/blue-bracket/blob/main/designs/blue3.md) | [`chenar-grove`](https://github.com/kamangir/blue-bracket/blob/main/designs/chenar-grove.md) [](https://github.com/kamangir/blue-bracket/blob/main/designs/chenar-grove.md) |
|
|
53
|
+
| [`cube`](https://github.com/kamangir/blue-bracket/blob/main/designs/cube.md) [](https://github.com/kamangir/blue-bracket/blob/main/designs/cube.md) | [`eye_nano`](https://github.com/kamangir/blue-bracket/blob/main/designs/eye_nano.md) [](https://github.com/kamangir/blue-bracket/blob/main/designs/eye_nano.md) | |
|
|
54
|
+
|
|
55
|
+
## shortcuts
|
|
56
|
+
|
|
57
|
+
| |
|
|
58
|
+
| --- |
|
|
59
|
+
| [`parts`](https://github.com/kamangir/bluer-sbc/blob/main/bluer_sbc/docs/parts) [](https://github.com/kamangir/bluer-sbc/blob/main/bluer_sbc/docs/parts) |
|
|
60
|
+
|
|
61
|
+
---
|
|
62
|
+
|
|
63
|
+
> 🌀 [`blue-sbc`](https://github.com/kamangir/blue-sbc) for the [Global South](https://github.com/kamangir/bluer-south).
|
|
64
|
+
|
|
65
|
+
---
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
[](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)
|
|
69
|
+
|
|
70
|
+
built by 🌀 [`bluer README`](https://github.com/kamangir/bluer-objects/tree/main/bluer_objects/README), based on 🌀 [`bluer_sbc-9.195.1`](https://github.com/kamangir/bluer-sbc).
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
built by 🌀 [`blueness-3.118.1`](https://github.com/kamangir/blueness).
|
|
@@ -0,0 +1,46 @@
|
|
|
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
|
+
## installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
pip install bluer_sbc
|
|
9
|
+
|
|
10
|
+
# @env dot list
|
|
11
|
+
@env dot cp <env-name> local
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
## aliases
|
|
15
|
+
|
|
16
|
+
[@camera](./bluer_sbc/docs/aliases/camera.md),
|
|
17
|
+
[@sbc rpi](./bluer_sbc/docs/aliases/sbc.md),
|
|
18
|
+
[@sbc <hardware>](./bluer_sbc/docs/aliases/hardware.md).
|
|
19
|
+
|
|
20
|
+
## designs
|
|
21
|
+
|
|
22
|
+
| | | |
|
|
23
|
+
| --- | --- | --- |
|
|
24
|
+
| [`swallow head`](./bluer_sbc/docs/swallow-head.md) [](./bluer_sbc/docs/swallow-head.md) | [`swallow`](./bluer_sbc/docs/swallow.md) [](./bluer_sbc/docs/swallow.md) | [`regulated bus`](./bluer_sbc/docs/regulated-bus.md) [](./bluer_sbc/docs/regulated-bus.md) |
|
|
25
|
+
| [`battery bus`](./bluer_sbc/docs/battery-bus.md) [](./bluer_sbc/docs/battery-bus.md) | [`adapter bus`](./bluer_sbc/docs/adapter-bus.md) [](./bluer_sbc/docs/adapter-bus.md) | [`ultrasonic-sensor-tester`](./bluer_sbc/docs/ultrasonic-sensor-tester.md) [](./bluer_sbc/docs/ultrasonic-sensor-tester.md) |
|
|
26
|
+
| [`bryce`](./bluer_sbc/docs/bryce.md) [](./bluer_sbc/docs/bryce.md) | [`cheshmak`](./bluer_sbc/docs/cheshmak.md) [](./bluer_sbc/docs/cheshmak.md) | [`nafha`](./bluer_sbc/docs/nafha) [](./bluer_sbc/docs/nafha) |
|
|
27
|
+
| [`shelter`](./bluer_sbc/docs/shelter) [](./bluer_sbc/docs/shelter) | [`blue3`](https://github.com/kamangir/blue-bracket/blob/main/designs/blue3.md) [](https://github.com/kamangir/blue-bracket/blob/main/designs/blue3.md) | [`chenar-grove`](https://github.com/kamangir/blue-bracket/blob/main/designs/chenar-grove.md) [](https://github.com/kamangir/blue-bracket/blob/main/designs/chenar-grove.md) |
|
|
28
|
+
| [`cube`](https://github.com/kamangir/blue-bracket/blob/main/designs/cube.md) [](https://github.com/kamangir/blue-bracket/blob/main/designs/cube.md) | [`eye_nano`](https://github.com/kamangir/blue-bracket/blob/main/designs/eye_nano.md) [](https://github.com/kamangir/blue-bracket/blob/main/designs/eye_nano.md) | |
|
|
29
|
+
|
|
30
|
+
## shortcuts
|
|
31
|
+
|
|
32
|
+
| |
|
|
33
|
+
| --- |
|
|
34
|
+
| [`parts`](./bluer_sbc/docs/parts) [](./bluer_sbc/docs/parts) |
|
|
35
|
+
|
|
36
|
+
---
|
|
37
|
+
|
|
38
|
+
> 🌀 [`blue-sbc`](https://github.com/kamangir/blue-sbc) for the [Global South](https://github.com/kamangir/bluer-south).
|
|
39
|
+
|
|
40
|
+
---
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
[](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)
|
|
44
|
+
|
|
45
|
+
built by 🌀 [`bluer README`](https://github.com/kamangir/bluer-objects/tree/main/bluer_objects/README), based on 🌀 [`bluer_sbc-9.195.1`](https://github.com/kamangir/bluer-sbc).
|
|
46
|
+
|
|
@@ -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_action_git_before_push() {
|
|
4
|
+
bluer_sbc build_README
|
|
5
|
+
[[ $? -ne 0 ]] && return 1
|
|
6
|
+
|
|
7
|
+
bluer_sbc parts adjust ~grid
|
|
8
|
+
[[ $? -ne 0 ]] && return 1
|
|
9
|
+
|
|
10
|
+
[[ "$(bluer_ai_git get_branch)" != "main" ]] &&
|
|
11
|
+
return 0
|
|
12
|
+
|
|
13
|
+
bluer_sbc pypi build
|
|
14
|
+
}
|
|
@@ -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
|
+
bluer_ai_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=$(bluer_ai_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=$(bluer_ai_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
|
+
bluer_ai_log_error "@sbc: grove: $task: $what: hardware not found."
|
|
27
|
+
return
|
|
28
|
+
fi
|
|
29
|
+
|
|
30
|
+
filename=$(bluer_ai_clarify_input $3 $filename)
|
|
31
|
+
|
|
32
|
+
local grove_path=$abcli_path_git/$filepath
|
|
33
|
+
|
|
34
|
+
bluer_ai_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
|
+
bluer_ai_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 bluer_ai_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
|
+
bluer_ai_install_module adafruit_rgb_matrix 106
|
|
15
|
+
fi
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
#! /usr/bin/env bash
|
|
2
|
+
|
|
3
|
+
function bluer_ai_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
|
+
bluer_ai_install_module grove 106
|
|
29
|
+
fi
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
#! /usr/bin/env bash
|
|
2
|
+
|
|
3
|
+
function bluer_ai_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
|
+
bluer_ai_install_module lepton 102
|
|
33
|
+
fi
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
#! /usr/bin/env bash
|
|
2
|
+
|
|
3
|
+
function bluer_ai_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
|
+
bluer_ai_install_module scroll_phat_hd 102
|
|
14
|
+
fi
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
#! /usr/bin/env bash
|
|
2
|
+
|
|
3
|
+
function bluer_ai_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
|
+
bluer_ai_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 bluer_ai_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
|
+
bluer_ai_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,19 @@
|
|
|
1
|
+
#! /usr/bin/env bash
|
|
2
|
+
|
|
3
|
+
function bluer_sbc_rpi_fake_display() {
|
|
4
|
+
local options=$1
|
|
5
|
+
local do_dryrun=$(bluer_ai_option_int "$options" dryrun 0)
|
|
6
|
+
|
|
7
|
+
if [[ "$abcli_is_rpi" == false ]]; then
|
|
8
|
+
bluer_ai_log_warning "rpi not found."
|
|
9
|
+
return 0
|
|
10
|
+
fi
|
|
11
|
+
|
|
12
|
+
sudo apt-get install -y xvfb
|
|
13
|
+
[[ $? -ne 0 ]] && return 1
|
|
14
|
+
|
|
15
|
+
Xvfb :99 -screen 0 640x480x24 &
|
|
16
|
+
[[ $? -ne 0 ]] && return 1
|
|
17
|
+
|
|
18
|
+
export DISPLAY=:99
|
|
19
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
#! /usr/bin/env bash
|
|
2
|
+
|
|
3
|
+
function bluer_sbc_rpi() {
|
|
4
|
+
local task=$1
|
|
5
|
+
|
|
6
|
+
local function_name=bluer_sbc_rpi_$task
|
|
7
|
+
if [[ $(type -t $function_name) == "function" ]]; then
|
|
8
|
+
$function_name "${@:2}"
|
|
9
|
+
return
|
|
10
|
+
fi
|
|
11
|
+
|
|
12
|
+
bluer_ai_log_error "@sbc rpi: $task: command not found."
|
|
13
|
+
return 1
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
bluer_ai_source_caller_suffix_path /rpi
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
#! /usr/bin/env bash
|
|
2
|
+
|
|
3
|
+
function bluer_sbc_parts_adjust() {
|
|
4
|
+
local options=$1
|
|
5
|
+
local do_dryrun=$(bluer_ai_option_int "$options" dryrun 0)
|
|
6
|
+
local generate_grid=$(bluer_ai_option_int "$options" grid 1)
|
|
7
|
+
|
|
8
|
+
bluer_ai_eval - \
|
|
9
|
+
python3 -m bluer_sbc.parts \
|
|
10
|
+
adjust \
|
|
11
|
+
--dryrun $do_dryrun \
|
|
12
|
+
--generate_grid $generate_grid \
|
|
13
|
+
"${@:2}"
|
|
14
|
+
}
|