SPC  Version 0.9.5
 All Files Functions Groups Pages
DigitalIn

This variable returns the current state of the 8 digital lines, B0 - B7.

This includes the state of any of the lines which are configured as outputs.

if ( DigitalIn & DIGI_PIN7 == DIGI_PIN7 ) //check if bit 7 set
{
// do something here
}