modified for beaglebone black, two channels