Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
osie
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Martin Manchev
osie
Commits
6e526f7f
Commit
6e526f7f
authored
Jun 22, 2020
by
Ivan Tyagov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add notes for slapos / re6stnet setup for debian 10.
parent
06d8f00a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
3 deletions
+22
-3
examples/lime2-mod-io-relay-on_off.py
examples/lime2-mod-io-relay-on_off.py
+22
-3
No files found.
examples/lime2-mod-io-relay-on_off.py
View file @
6e526f7f
#!/usr/bin/python3
"""
This is an example of connecting LIME2 + LIME2-SHIELD + MOD-IO (over UEXT) and controlling a relay (on / off).
It's mixed with slapos / re6stnet install.
I. prepare lime2 + lime2's shield + MOD-IO
# install packages
# install packages
at your laptop
root@t470:~/tmp$ apt install minicom
ivan@t470:~/tmp$ wget http://images.olimex.com/release/a20/A20-OLinuXino-bionic-minimal-20200601-122736.img.7z
ivan@t470:~/tmp$ 7z e A20-OLinuXino-bionic-minimal-20200601-122736.img.7z
# XXX: currently nexedi suports fro armhf only debian (slapos + re6stnet packages)
ivan@t470:~/tmp$ wget http://images.olimex.com/release/a20/A20-OLinuXino-buster-minimal-20200601-122725.img.7z
ivan@t470:~/tmp$ 7z e A20-OLinuXino-buster-minimal-20200601-122725.img.7z
# download from https://www.balena.io/etcher/
ivan@t470:~/tmp$ unzip ../balena-etcher-electron-1.5.95-linux-x64.zip
ivan@t470:~/tmp$ chmod o+x balenaEtcher-1.5.95-x64.AppImage
...
...
@@ -58,6 +61,22 @@ root@a20-olinuxino:~# i2cdetect -r 1 # should show 0х58 is available
II. finally run this script as root, you should see RELAY1's led showing green color.
III. Integration with Nexedi's toolset for Wendelin
# re6snet
root@a20-olinuxino:~# apt install htop tig git etckeeper vim
root@a20-olinuxino:~# wget https://deploy.erp5.net/gnet/re6st && bash re6st # get re6stnet token from slapos.vifib.com
root@a20-olinuxino:~# echo "default" >> /etc/re6stnet/re6stnet.conf
root@a20-olinuxino:~# /etc/init.d/re6stnet restart
# slapos
root@a20-olinuxino:~# wget https://deploy.erp5.net/slapos && bash slapos # get slapos token from slapos.vifib.com
# fluentd
ivan@t470:~$ slapos console
>>> release="https://lab.nexedi.com/nexedi/slapos/raw/master/software/fluentd/software.cfg"
>>> supply(release, "COMP-3217")
"""
from
pyA20Lime2
import
i2c
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment