Make sure the core frequency is locked. To do this you can add the following lines to /boot/config.txt:
$ core_freq=250
$ core_freq_min=250
you can increase these frequencies if needed for 4k resolution on the pi 4
The I2C connection requires pull-up resistors (typically 4.7kΩ) on both SDA and SCL lines.
The DGT clock uses two I2C addresses:
- 0x08 - Main communication (commands to clock, responses from clock)
- 0x10 - Acknowledgment responses from clock
| Raspberry Pi Model | Master I2C (Tx) | Slave I2C (Rx) | Notes |
|---|---|---|---|
| Pi 5 | GPIO 2 (SDA), GPIO 3 (SCL) - I2C1 ALT0 | GPIO 6 (SDA), GPIO 7 (SCL) - I2C3 ALT0 | RP1 southbridge |
| Pi 4 | GPIO 2 (SDA), GPIO 3 (SCL) - I2C1 ALT0 | GPIO 10 (SDA), GPIO 11 (SCL) - I2C0 ALT3 | Two BSC controllers |
| Pi 1/2/3 | GPIO 2 (SDA), GPIO 3 (SCL) - I2C1 ALT0 | GPIO 18 (SDA), GPIO 19 (SCL) - BSC SLAVE ALT3 | Two BSC controllers |
to compile use:
$ make
$ sudo ./dgtpicom "a message"
you can add a beep and icons/dots:
$ sudo ./dgtpicom "a message" 1 31 15
$ sudo ./dgtpicom r 0 10 0 0 10 0
you can run Left and Right up and down with L,R,l and r
$ sudo ./dgtpicom
lever will pause, off button wil stop te app