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: https://snapcraft.io/docs/
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
$ 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
Use the relevant commands
$ sudo snap install hello
$ sudo snap install wiringop-zero --edge
$ 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
$ sudo snap install alsa-utils