refactor LEDs so it is not BBB specific, works for R-Pi as well