Refactoring hal and adding raspi leds