Electronic Nights III - Animated LEDs and Buttons

How to programmatically turn on LEDs and read button states