[SOLVED] GPIO cannot work on up-board squared
Hello,
I'm trying to use GPIO pins on up2 to control an LED. I used the following code:sudo -i
echo 432 > /sys/class/gpio/export
echo "out" > /sys/class/gpio/gpio432/direction
echo 1 > /sys/class/gpio/gpio432/value
The value has been set to 1 correctly, but the LED is not on.
I tried with mraa-gpio too, and with mraa-gpio list
shows No pins
.
I tried to install the kernel for up-board according to https://wiki.up-community.org/Ubuntu#Install_Ubuntu_kernel_for_UP_from_PPA. But when I type uname -a
, it always shows Linux upboard-UP-APL01 4.14.20-041420-generic #201802162247 SMP Fri Feb 16 22:48:07 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
.
Is there anyone who knows how to solve this problem? Thanks
Greetings,
Yiyun
Comments
-
It seems like the problem is that the kernel what I used is not for up-board. After I changed my Kernel, I can control the GPIOs without problem.
Tagged
Categories
- All Categories
- 63 Announcements & News
- 139 Product News - New Product/Product Change Notice/ End-of-life
- 112 Welcome Developers!
- 60 Unboxing & Project Sharing
- 114 Tech Updates
- 3.6K UP Products
- 119 UP 7000
- 25 UP Squared i12
- 24 UP Xtreme i12
- 14 UP Squared Pro 7000
- 1 UP Element i12 Edge
- 24 UP Squared V2
- 65 UP 4000
- 23 UP Xtreme i11
- 34 UP Squared 6000
- 59 UP Squared Pro
- 135 UP Xtreme
- 820 UP Squared
- 1.4K UP Board
- 74 UP Core Plus
- 217 UP Core
- 3 UP Xtreme Lite
- 40 UP AI Edge
- 265 Starter Kits & Peripheral