DIN = digital in, used for connecting buttons, buttons = on or off (therefore the D in DIN) DOUT = digital out, used for connecting anything that accepts logic on or off (voltage or no voltage), use this to connect LEDs (but also other stuff like relais, CMOS switches, ...)