Switch - project-owner/Peppy.doc GitHub Wiki
Different devices connected to the player over the I2C bus can be switched on/off from the Switch screen. During player shutdown all configured devices will be switched off. During player startup all configured devices will be switched on. It's also possible to switch devices on/off when the player is running.
By default the player provides this functionality for the hard drives power supplies. All devices should be configured in the file /home/pi/Peppy/switch/disks.txt:
[disk.1]
name = Rock
power.on = False
To enable the Switch functionality the corresponding property should be set to True (False by default) in the configuration file config.txt
[file.browser]
...
use.switch = True
That will enable the Switch icon in the File Browser Navigator:
By default all disks are unselected.
When the corresponding disk is selected in UI the signal will be sent over the I2C bus to switch the disk's power supply on.
All disks can be selected at the same time.