To use a Raspberry Pi to generate a clock screen that looks like this:
Download the Python file here.
NB as Raspian has Pygame installed for Python 2 but not Python 3 this file is intended for Python 2.
And download the logo file here.
If you don't want a logo then just comment out (put a # at the start of) lines 65, 68 and 69 in the Clock.pyw file.
To stop the screen from blanking you can install xscreensaver.
Open LXTerminal and enter the following line:
sudo apt-get install xscreensaver
Reboot. Then and click on start, preferences, screensaver and set the mode to "Disable Screen Saver"
To draw antialiased lines Pygame requires the colour depth to be either 24 or 32 bits. To set this you'll need to edit the file /boot/config.txt
You can do this from LXTerminal. Enter:
cd /boot
then:
sudo nano config.txt
add the line:
framebuffer_depth=24
Do not put spaces either side of the equals sign. And save the file (press ctrl+o)
To get the file to autostart:
Open filemanager and go to /home/pi/.config/ (you'll have to type in the .config bit as it's a hidden folder)
Then make a folder called "autostart" In autostart make a new file and call it "Clock.desktop" Edit this file and enter the following text:
[Desktop Entry]
Name=Clock
Exec=gksu python /home/pi/Desktop/Clock.pyw
StartupNotify=false
Terminal=false
Type=Application
Save the file.
Also you'll need to edit Clock.pwy again and comment out line 65 and uncomment line 67.
If you've saved Clock.pyw and logo.png anywhere other than /home/pi/Desktop then you'll need to edit line 67 otherwise it won't be able to find the image.
To use with a Monitor that has a DVI input - in config.txt: hdmi_force_hotplug=1 hdmi_group=2 hdmi_mode=0x10 (for 1024 by 768, more modes listed at ...URL) displayconfig_hdmi_boost=4
To be done - The GPIO contacts can be used to generate a 'MIC LIVE' or 'ON AIR' message.
To install the GPIO package open LXTerminal and enter the following line:
sudo apt-get install python-rpi.gpio
And this line:
sudo apt-get install python3-rpi.gpio
Pinout here. NB the numbers in the Python code relate to the pin number NOT the GPIO number.
To use the Raspberry Pi's GPIOs pypi.python.org/pypi/RPi.GPIO