Location:
Search - GPIOcontrol
Search list
Description: 三星S3c2410 的 GPIO控制程序. GPIO的控制是所有嵌入式开发的基础,GPIO掌握了,才能再磁基础上深入. -of GPIO control procedures. GPIO control is all embedded development base Hence, the GPIO master, can we further on the basis of magnetic-depth.
Platform: |
Size: 323584 |
Author: 刘洋 |
Hits:
Description: 针对ARM LPC2131芯片的GPIO控制程序。-According to the ARM LPC2131 chip GPIO control procedures.
Platform: |
Size: 103424 |
Author: 小迪 |
Hits:
Description: 自己写的嵌入式LINUX下GPIO口控制类
,用在QT的Widgets Application中
【使用方法】
[初始化对象]
GpioControl m_gpioControl;
[初始化GPIO第84口OUT]
m_gpioControl.Init(84);
[设置GPIO第84口高电平]
m_gpioControl.gpio_set_value(84, "1");
[设置GPIO第84口低电平]
m_gpioControl.gpio_set_value(84, "0");
[初始化GPIO第13口IN]
m_gpioControl.Init(13, false);
[读取GPIO第13口电平]
char buf[2];
m_gpioControl.gpio_get_value(13, buf);
if(buf[0] == '0')
{
//GPIO第13口为低电平
}
else
{
//GPIO第13口为高电平
}(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
})
Platform: |
Size: 1024 |
Author: 矿石棋坛
|
Hits: