Added abstraction layer to hide RPi/BBB differences.