Welcome![Sign In][Sign Up]
Location:
Downloads SourceCode Embeded-SCM Develop Embeded Linux
Title: GPIO口控制类GpioControl Download
 Description: Embedded linux GPIO controller which write by myself, used in QT Widgets Application. [Tutorial] //Init object GpioControl m_gpioControl; //Init no.84 GPIO OUT m_gpioControl.Init(84); //set no.84 GPIO hIgh power level m_gpioControl.gpio_set_value(84, "1"); //set no.84 GPIO low power level m_gpioControl.gpio_set_value(84, "0"); //Init no.13 GPIO IN m_gpioControl.Init(13, false); //read no.13 GPIO power level char buf[2]; m_gpioControl.gpio_get_value(13, buf); if(buf[0] == '0') { //no.13 GPIO power level is low } else { //no.13 GPIO power level is high }
 Downloaders recently: [More information of uploader 李良 ]
 To Search:
File list (Check if you may need any files):
gpiocontrol.h
gpiocontrol.cpp

CodeBus www.codebus.net