Raspberry zero pinMode PWM: Unable to do this when using /dev/gpiomem. Try sudo?
Unsolved
Mobile and Embedded
-
Hello,
I'm almost frustrated because I cannot find any simply way th run a c program which controls the gpio ports.
How can I force qt to run the applicastion with sudo?
This is my configurationqt 5.13.1 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 5.3.1 20160406 (Red Hat 5.3.1-6)) on "xcb" OS: Ubuntu 20.04.3 LTS [linux version 5.11.0-38-generic] Architecture: x86_64; features: SSE2 SSE3 SSSE3 SSE4.1 SSE4.2 AVX AVX2 Environment: QT_ACCESSIBILITY="1" QT_IM_MODULE="ibus" Features: QT_NO_EXCEPTIONS
and here RPI Config
PRETTY_NAME="Raspbian GNU/Linux 10 (buster)" NAME="Raspbian GNU/Linux" VERSION_ID="10" VERSION="10 (buster)" VERSION_CODENAME=buster ID=raspbian ID_LIKE=debian HOME_URL="http://www.raspbian.org/" SUPPORT_URL="http://www.raspbian.org/RaspbianForums" BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
-
Hi,
The usual way is to add the user to the group that has access to the device.