Skip to content

Instantly share code, notes, and snippets.

@Daft-Freak
Created January 20, 2025 12:32
Show Gist options
  • Save Daft-Freak/7b8a16cd43f8d3573522ec4c67450ac8 to your computer and use it in GitHub Desktop.
Save Daft-Freak/7b8a16cd43f8d3573522ec4c67450ac8 to your computer and use it in GitHub Desktop.
32blit-pico config
// input gpio
#define BUTTON_LEFT_PIN -1
#define BUTTON_RIGHT_PIN -1
#define BUTTON_UP_PIN -1
#define BUTTON_DOWN_PIN -1
#define BUTTON_A_PIN -1
#define BUTTON_B_PIN -1
#define BUTTON_X_PIN -1
#define BUTTON_Y_PIN -1
#define BUTTON_MENU_PIN -1
#define BUTTON_HOME_PIN -1
#define BUTTON_JOYSTICK_PIN -1
#define BUTTON_x_ACTIVE_HIGH false // 1 == pressed if true, else 0 == pressed
// display
#define DISPLAY_WIDTH 320
#define DISPLAY_HEIGHT 240
// display dbi
#define DBI_8BIT // 8-bit parallel instead of SPI
#define LCD_CS_PIN 17
#define LCD_DC_PIN 16
#define LCD_SCK_PIN 18 // WR if 8-bit
#define LCD_RD_PIN // for 8-bit
#define LCD_MOSI_PIN 19 // D0 if 8-bit
#define LCD_RESET_PIN
#define LCD_BACKLIGHT_PIN 20
#define LCD_VSYNC_PIN // TE
#define LCD_MAX_CLOCK 62500000
#define LCD_ROTATION 0 // multiples of 90
// led
#define LED_INVERTED
#define LED_R_PIN
#define LED_G_PIN
#define LED_B_PIN
// sd spi
#define SD_SCK
#define SD_MOSI
#define SD_MISO
#define SD_CS
#define SD_SPI_OVERCLOCK 1
// usb
#define USB_VENDOR_ID 0xCafe
#define USB_VENDOR_STR "TinyUSB"
#define USB_PRODUCT_STR "Device"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment