BrickPi Library in C