Skip to content

Commit

Permalink
pico: switch tufty to gpio input
Browse files Browse the repository at this point in the history
  • Loading branch information
Daft-Freak committed Jan 15, 2024
1 parent 0524274 commit c91e92d
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 65 deletions.
2 changes: 1 addition & 1 deletion 32blit-pico/board/tufty2040/config.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ set(BLIT_BOARD_DEFINITIONS
)

blit_driver(display st7789)
blit_driver(input tufty)
blit_driver(input gpio)
13 changes: 12 additions & 1 deletion 32blit-pico/board/tufty2040/config.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,19 @@
#pragma once

#define DISPLAY_WIDTH 320
#define BUTTON_UP_PIN 22
#define BUTTON_DOWN_PIN 6
#define BUTTON_A_PIN 7
#define BUTTON_B_PIN 8
#define BUTTON_X_PIN 9 // C
#define BUTTON_Y_PIN 23 // USER_SW

#define BUTTON_UP_ACTIVE_HIGH true
#define BUTTON_DOWN_ACTIVE_HIGH true
#define BUTTON_A_ACTIVE_HIGH true
#define BUTTON_B_ACTIVE_HIGH true
#define BUTTON_X_ACTIVE_HIGH true

#define DISPLAY_WIDTH 320

#define ST7789_8BIT
#define ST7789_ROTATE_180
Expand Down
63 changes: 0 additions & 63 deletions 32blit-pico/input_tufty.cpp

This file was deleted.

0 comments on commit c91e92d

Please sign in to comment.