Lanner LEC-2010 User Manual
Page 64
Advertising
LEC-2010 Fanless Embedded System User’s Manual
64
Output_value
=
15;
break;
default:
print_help(argv);
}
}
else {
print_help(argv);
}
}
if(io_mode==0) {
Input_value
=
Get_DIO_Input_value();
printf(" The Input pin of Digital IO = 0x%x\n", Input_value);
} else {
Set_DIO_Output_value(Output_value <<4); // use bit3~0 map to GPO24~27
printf("
write
done...\n");
}
}
Note: The DIO function is from the WINBODN 83627UHG. Lanner provides sample codes in the Manual/
Driver CD under the path: LEC-2010 Driver / LEC-2010 Utility/4bit-DIO
Advertising