Autodetects version of RaspberryPi

All the RaspberryPi demo programs can now auto detect the
version of the RaspberryPi and set the data pin appropriately.