![Orange Pi Zero Скачать руководство пользователя страница 13](http://html.mh-extra.com/html/orange-pi/zero/zero_user-manual_1646574013.webp)
Shenzhen Xunlong Software Co., Limited
11
Install and run your first Snaps —— Hello, enter the following command:
You could refer to the official website about how to develop and use Ubuntu Core
Snaps and snapcraft file:
Ubuntu Core file:
https://docs.ubuntu.com/core/en/
5.Test example for Ubuntu Core driver
User Snappy wiringop-zero to test the function of GPIO
Install wiringop-zero(for now it is on edge channel) from Orange Pi store
Connect plug-in unit of
wiringop-zero and core
1.
2.
$ snap connect wiringop
-
zero
:
physical
-
memory
-
control
core
:
physical
-
memory
-
control
$ snap connect wiringop
-
zero
:
physical
-
memory
-
observe
core
:
physical
-
memory
-
observe
Test the function of GPIO (same as other images)
Test the function of playback and recording
Install
alsa-utils
Use the relevant commands
1.
2.
$ sudo snap install hello
$ hello
1.
$ sudo snap install wiringop
-
zero
--
edge
1.
2.
3.
4.
$ sudo wiringop
-
zero
.
gpio mode
2
out
$ sudo wiringop
-
zero
.
gpio write
8 0
$ sudo wiringop
-
zero
.
gpio write
8 1
$ sudo wiringop
-
zero
.
gpio read
8
1.
$ sudo snap install alsa
-
utils
1.
2.
3.
$ sudo aplay
-
l
$ sudo alsamixer
$ sudo aplay test
.
wav
Содержание Zero
Страница 1: ...Shenzhen Xunlong Software Co Limited I Orange Pi Zero Ubuntu Core User Manual ...
Страница 4: ...Shenzhen Xunlong Software Co Limited 2 ...
Страница 16: ...Shenzhen Xunlong Software Co Limited 14 ...
Страница 18: ...Shenzhen Xunlong Software Co Limited 16 name of Snaps is unique ...
Страница 19: ...Shenzhen Xunlong Software Co Limited 17 Enjoy it ...