And it could be more than simple call of digitalRead or digitalWrite. Actually we have to write the layer between leader logic program and real HW of Arduino. Return digitalRead(10) // button on digital pin 10Īnd similar to others input and output pins. Let say we have input contact called “ button” then we have to implement function: This file contains all logic but it requires header file ladder.h which is missing. When we select ANSI C Code as Microcontroler type in Settings menu of LDmicro after compile we will get C file.