Implementation using bcm2835 library