in gpio access from toradex library code.following problems are come
- writing code in vc sharp from toradex side but when FORM1 clik from gpio access purpose that time no response…
- code below
- so always Else condition executed that’s the reason gpio library not executed properly.
2->
private void btnDeinit_Click(object sender, EventArgs e)
{
if (false == gpio.Gpio_Close(hGPIO))
{
MessageBox.Show("Error:- Gpio Close");
return;
}
else
{
if (false == gpio.Gpio_Deinit(hGPIO))
{
MessageBox.Show("Error Deinit GPIO handle");
return;
}
}
/// GUI code
btnDeinit.Enabled = false;
btnOutput.Enabled = false;
btnInput.Enabled = false;
btnOn.Enabled = false;
btnOff.Enabled = false;
btnSetGpio.Enabled = true;
tmrBtnLevel.Enabled = false;
lblPinLevl.Text = "".ToString();
}