The Adafruit CYBERDECK HAT is an innovative expansion board designed for Raspberry Pi enthusiasts and cyberdeck builders. This HAT (Hardware Attached on Top) is equipped with a 128x64 monochrome OLED display, capacitive touch buttons, a joystick, and additional components that enable users to create interactive and user-friendly interfaces for their projects. It is ideal for DIY projects, custom interfaces, and portable computing applications.
Pin Number | Function | Description |
---|---|---|
1 | 3.3V | Power supply for the OLED display and touch IC |
2 | 5V | Power supply for the HAT |
3 | SDA (I2C) | I2C data line for communication with OLED |
4 | 5V | Power supply for the HAT |
5 | SCL (I2C) | I2C clock line for communication with OLED |
6 | Ground | Ground connection |
... | ... | ... |
39 | Ground | Ground connection |
40 | GPIO21 | GPIO for joystick and additional features |
Note: This table is not exhaustive and only includes key pins related to the CYBERDECK HAT's primary features.
To interact with the CYBERDECK HAT's components, you can use the provided Adafruit libraries. Here's an example of initializing the OLED display with Python:
import Adafruit_GPIO.SPI as SPI
import Adafruit_SSD1306
RST = 24
DC = 23 SPI_PORT = 0 SPI_DEVICE = 0
disp = Adafruit_SSD1306.SSD1306_128_64(rst=RST)
disp.begin()
disp.clear() disp.display()
raspi-config
to enable I2C interface under the "Interfacing Options" menu.i2cdetect
command to confirm that the Raspberry Pi detects the CYBERDECK HAT.Q: Can I use the CYBERDECK HAT with other Raspberry Pi models? A: Yes, as long as the Raspberry Pi model has a compatible 40-pin GPIO connector.
Q: Do I need to install any specific software to use the CYBERDECK HAT? A: Yes, you will need to install the Adafruit libraries for Python to interact with the display and input devices.
Q: How do I customize the display output? A: You can use the Adafruit SSD1306 library to draw text, shapes, and images on the OLED display.
For further assistance, refer to the Adafruit CYBERDECK HAT forums and community resources.