C/C++ codes for Raspberry Pi Control