DATASHEET 4DPi-32-II 3.2” Primary Display for the Raspberry Pi REVISION 2.x HARDWARE Document Date: 14th July 2018 Document Revision: 2.12 Uncontrolled Copy when printed or downloaded.
4DPi-32-II Primary Display – Raspberry Pi Contents 1. Description ............................................................................................................................. 3 2. Features ................................................................................................................................. 3 3. Pin Configuration and Summary .............................................................................................. 4 4. Connecting the Display to the Pi .......
4DPi-32-II Primary Display – Raspberry Pi 4D SYSTEMS 4DPi-32-II Primary Display – Raspberry Pi Compatible 1. Description 2. Features The 4DPi-32-II (Revision 2.x Hardware) is a 3.2” Primary Display for the Raspberry Pi* A+, B+, Pi2, Pi3, Pi3 B+, Pi Zero and Pi Zero W which plugs directly on top and displays the primary output like what is normally sent to the HDMI or Composite output.
DPi-32-II Primary Display – Raspberry Pi 4D SYSTEMS 4DPi-32-II Primary Display – Raspberry Pi Compatible 3. Pin Configuration and Summary Pin P1 Pinout (Raspberry Pi Connector – FEMALE connector) Symbol I/O Description 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 +5V +3.3V +5V SDA1 GND SCL1 GPIO14 GPIO4 GPIO15 GND GPIO18 PENIRQ GND KEYIRQ GPIO23 GPIO22 GPIO24 +3.
4DPi-32-II Primary Display – Raspberry Pi 4D SYSTEMS 4DPi-32-II Primary Display – Raspberry Pi Compatible Pin Symbol I/O P1 Pinout continued… Description 27 28 29 30 31 32 33 34 35 36 37 38 39 40 ID-SC ID-SD GND GPIO5 GPIO12 GPIO6 GND GPIO13 GPIO16 GPIO19 GPIO20 GPIO26 GPIO21 GND O I/O P I/O I/O I/O P I/O I/O I/O I/O I/O I/O P I2C ID EEPROM I2C ID EEPROM Ground Pin, connected to the main system Ground of the Raspberry Pi GPIO on the Raspberry Pi - unused GPIO on the Raspberry Pi - unused GPIO on t
4DPi-32-II Primary Display – Raspberry Pi 4D SYSTEMS 4DPi-32-II Primary Display – Raspberry Pi Compatible 2) Load the Raspberry Pi image onto a SD card, using the instructions provided on the Raspberry Pi website for Linux, Mac or PC: http://www.raspberrypi.org/documentation/i nstallation/installing-images/README.md 4. Connecting the Display to the Pi 4.1.
4DPi-32-II Primary Display – Raspberry Pi 4D SYSTEMS 4DPi-32-II Primary Display – Raspberry Pi Compatible 9) On newer Raspbian images, by default the system boots to Desktop GUI. Booting to command line can be selected using the raspiconfig tool, submenu Boot Options. The user should get something like this 10-quirks.conf 40-libinput.conf evdev.conf 99-fbturbo.conf 45- $ sudo raspi-config 5) 10) Shutdown the Raspberry Pi safely, and remove the power after it has completed its shutdown.
4DPi-32-II Primary Display – Raspberry Pi 4D SYSTEMS 4DPi-32-II Primary Display – Raspberry Pi Compatible 4.5. Change the SPI Freq and Compression The 4DPi-32-II can be adjusted to work with a range of SPI Frequencies and levels of compression, depending on the requirements of the end product/project.
4DPi-32-II Primary Display – Raspberry Pi 4D SYSTEMS 4DPi-32-II Primary Display – Raspberry Pi Compatible 4.8.
4DPi-32-II Primary Display – Raspberry Pi 4D SYSTEMS 4DPi-32-II Primary Display – Raspberry Pi Compatible 5.
4DPi-32-II Primary Display – Raspberry Pi 4D SYSTEMS 4DPi-32-II Primary Display – Raspberry Pi Compatible 7. Mechanical Details © 2018 4D SYSTEMS Page 11 of 18 www.4dsystems.com.
4DPi-32-II Primary Display – Raspberry Pi 4D SYSTEMS 4DPi-32-II Primary Display – Raspberry Pi Compatible 8. Schematic Diagram © 2018 4D SYSTEMS Page 12 of 18 www.4dsystems.com.
4DPi-32-II Primary Display – Raspberry Pi 4D SYSTEMS 4DPi-32-II Primary Display – Raspberry Pi Compatible 9. Specifications and Ratings ABSOLUTE MAXIMUM RATINGS Operating ambient temperature ................................................................................................... -15°C to +65°C Storage temperature ..........................................................................................................................
4DPi-32-II Primary Display – Raspberry Pi 4D SYSTEMS 4DPi-32-II Primary Display – Raspberry Pi Compatible 10. Appendix 1 – Code Examples – Push Buttons Example for communicating to Push Buttons, for C: // test program to read state of buttons on 4D Systems 4DPi displays #include #include #include #include #include #include
4DPi-32-II Primary Display – Raspberry Pi 4D SYSTEMS 4DPi-32-II Primary Display – Raspberry Pi Compatible Example for communicating to Push Buttons, for Python: #!/usr/bin/python import array, fcntl from time import sleep # test program to read state of buttons on 4D Systems 4DPi displays #LCD4DPI_GET_KEYS = -2147202303 _IOC_NRBITS = 8 _IOC_TYPEBITS = 8 _IOC_SIZEBITS = 14 _IOC_DIRBITS = 2 _IOC_DIRMASK = (1 << _IOC_DIRBITS) - 1 _IOC_NRMASK = (1 << _IOC_NRBITS) - 1 _IOC_TYPEMASK = (1 << _IOC_TYPEBITS ) - 1
4DPi-32-II Primary Display – Raspberry Pi 4D SYSTEMS 4DPi-32-II Primary Display – Raspberry Pi Compatible Example for Shutdown and Reset buttons, for C // test program to Shutdown or Restart Pi using buttons on 4D Systems 4DPi displays #include #include #include #include #include #include
4DPi-32-II Primary Display – Raspberry Pi 4D SYSTEMS 4DPi-32-II Primary Display – Raspberry Pi Compatible Example for Shutdown and Reset buttons, for Python #!/usr/bin/python import array, fcntl, os from time import sleep # test program to Shutdown or Restart Pi using buttons on 4D Systems 4DPi displays #LCD4DPI_GET_KEYS = -2147202303 _IOC_NRBITS = 8 _IOC_TYPEBITS = 8 _IOC_SIZEBITS = 14 _IOC_DIRBITS = 2 _IOC_DIRMASK = (1 << _IOC_DIRBITS) - 1 _IOC_NRMASK = (1 << _IOC_NRBITS) - 1 _IOC_TYPEMASK = (1 << _IOC
4DPi-32-II Primary Display – Raspberry Pi 4D SYSTEMS 4DPi-32-II Primary Display – Raspberry Pi Compatible 11. Legal Notice Proprietary Information The information contained in this document is the property of 4D Systems Pty. Ltd. and may be the subject of patents pending or granted, and must not be copied or disclosed without prior written permission. 4D Systems endeavours to ensure that the information in this document is correct and fairly stated but does not accept liability for any error or omission.