I need to manage the I/O ports from qt5.
I applied the following code but it doesn't work.How do I manage the ports without using any libraries?
I applied the following code but it doesn't work.
Code:
QFile exportFile("/sys/class/gpio/gpio19/export");exportFile.open(QIODevice::WriteOnly);exportFile.write("19");QFile directionFile("/sys/class/gpio/gpio19/direction");directionFile.open(QIODevice::WriteOnly);directionFile.write("in");QFile edgeFile("/sys/class/gpio/gpio19/edge");edgeFile.open(QIODevice::WriteOnly);edgeFile.write("body");
Statistics: Posted by AlexeyGolubev — Sun Sep 29, 2024 6:25 am