Skip to content

Commit

Permalink
vik module support for azoteq
Browse files Browse the repository at this point in the history
  • Loading branch information
sadekbaroudi committed Nov 3, 2023
1 parent 6f341b8 commit ae66157
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 5 deletions.
19 changes: 17 additions & 2 deletions keyboards/fingerpunch/src/vik/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,15 @@

/**
* Modules:
* VIK_HAPTIC
* VIK_PER56_CIRQUE_LEDS
* VIK_PER56_CIRQUE_LEDS
* VIK_PER56_PMW3360_LEDS
* VIK_PMW3360
* VIK_WEACT_ST7735
* VIK_GC9A01
* VIK_HAPTIC
* VIK_VIK_GC9A01
* VIK_WAVESHARE_22224
* VIK_AZOTEQ
*
* Pin config:
* VIK_SPI_DRIVER
Expand Down Expand Up @@ -141,3 +144,15 @@
// Must be defined by the keyboard itself, needs a free unused pin for reset
#define DISPLAY_RST_PIN VIK_ST7735_UNUSED_PIN
#endif

#ifdef VIK_AZOTEQ
// default to AZOTEQ_IQS5XX_TPS43... shouldn't really do this
#if !defined(AZOTEQ_IQS5XX_TPS43) && !defined(AZOTEQ_IQS5XX_TPS65)
// #warning "fingerpunch:vik:azoteq: no azoteq profile defined, defaulted to AZOTEQ_IQS5XX_TPS43"
#define AZOTEQ_IQS5XX_TPS43
#define AZOTEQ_IQS5XX_PRESS_AND_HOLD_ENABLE true
#define AZOTEQ_IQS5XX_SWIPE_X_ENABLE true
#define AZOTEQ_IQS5XX_SWIPE_Y_ENABLE true
#define AZOTEQ_IQS5XX_ZOOM_ENABLE true
#endif
#endif
7 changes: 7 additions & 0 deletions keyboards/fingerpunch/src/vik/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
# VIK_WEACT_ST7735
# VIK_VIK_GC9A01
# VIK_WAVESHARE_22224
# VIK_AZOTEQ

ifeq ($(strip $(VIK_HAPTIC)), yes)
HAPTIC_ENABLE = yes
Expand Down Expand Up @@ -66,6 +67,12 @@ ifeq ($(strip $(VIK_WAVESHARE_22224)), yes)
OPT_DEFS += -DVIK_WAVESHARE_22224
endif

ifeq ($(strip $(VIK_AZOTEQ)), yes)
POINTING_DEVICE_ENABLE := yes
POINTING_DEVICE_DRIVER := azoteq_iqs5xx
OPT_DEFS += -DVIK_AZOTEQ
endif

ifeq ($(strip $(PMW3360_ENABLE)), yes)
POINTING_DEVICE_ENABLE := yes
POINTING_DEVICE_DRIVER := pmw3360
Expand Down
8 changes: 5 additions & 3 deletions keyboards/fingerpunch/svlinky/fp_build.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,16 @@
{
"type" : "one-of",
"names" : [
"VIK_HAPTIC",
"VIK_PER56_CIRQUE_LEDS",
"VIK_PER56_CIRQUE_LEDS",
"VIK_PER56_PMW3360_LEDS",
"VIK_PMW3360",
"VIK_WEACT_ST7735",
"VIK_GC9A01",
"VIK_VIK_GC9A01",
"VIK_WAVESHARE_22224",
"VIK_HAPTIC"
"VIK_AZOTEQ"
],
"user_input": "Which VIK module are you testing? NONE, VIK_PER56_CIRQUE_LEDS, VIK_PER56_PMW3360_LEDS, VIK_PMW3360, VIK_WEACT_ST7735, VIK_GC9A01, VIK_WAVESHARE_22224, VIK_HAPTIC"
"user_input": "Which VIK module are you testing? NONE, VIK_HAPTIC, VIK_PER56_CIRQUE_LEDS, VIK_PER56_CIRQUE_LEDS, VIK_PER56_PMW3360_LEDS, VIK_PMW3360, VIK_WEACT_ST7735, VIK_VIK_GC9A01, VIK_WAVESHARE_22224, VIK_AZOTEQ"
}
]

0 comments on commit ae66157

Please sign in to comment.