The Adafruit CYBERDECK Bonnet is an innovative and versatile add-on board designed for Raspberry Pi enthusiasts and cyberdeck builders. This compact board extends the capabilities of your Raspberry Pi by adding a full-color OLED display, user-interactive buttons, a NeoPixel LED, and additional GPIO access. It is ideal for creating portable computing projects, custom user interfaces, or adding visual and interactive elements to your creations.
Pin Number | Description | Notes |
---|---|---|
1 | 3.3V Power | Power supply for the Bonnet |
2 | 5V Power | Not directly used by the Bonnet |
3 | SDA (I2C Data) | OLED communication |
4 | 5V Power | Not directly used by the Bonnet |
5 | SCL (I2C Clock) | OLED communication |
6 | Ground | Common ground |
... | ... | ... |
12 | GPIO18 (NeoPixel Data) | NeoPixel control |
... | ... | ... |
36 | GPIO16 (Button A) | Button A input |
37 | GPIO26 (Button B) | Button B input |
... | ... | ... |
40 | GPIO21 (Button C) | Button C input |
Note: This table does not include all pins, only those relevant to the CYBERDECK Bonnet's features.
While the Adafruit CYBERDECK Bonnet is designed for use with the Raspberry Pi, if you wish to interface it with an Arduino UNO, you can use the following example code to control the NeoPixel LED. Note that the OLED display and buttons require different libraries and setup for Arduino.
#include <Adafruit_NeoPixel.h>
#define PIN 6 // Define the pin connected to the NeoPixel data line
#define NUMPIXELS 1 // Number of NeoPixels
Adafruit_NeoPixel pixels(NUMPIXELS, PIN, NEO_GRB + NEO_KHZ800);
void setup() {
pixels.begin(); // Initialize the NeoPixel library.
}
void loop() {
pixels.setPixelColor(0, pixels.Color(255, 0, 0)); // Set the pixel to red
pixels.show(); // Update the pixel color
delay(500);
pixels.setPixelColor(0, pixels.Color(0, 255, 0)); // Set the pixel to green
pixels.show();
delay(500);
pixels.setPixelColor(0, pixels.Color(0, 0, 255)); // Set the pixel to blue
pixels.show();
delay(500);
}
Note: The above code is for illustrative purposes. The CYBERDECK Bonnet is not directly compatible with Arduino UNO without modifications.
For further assistance, Adafruit provides a community forum where you can ask questions and share your projects.