From a74b9f17c55bf376366a0762d11933694a96dc4b Mon Sep 17 00:00:00 2001 From: Vince van Oosten Date: Sun, 4 Aug 2024 13:48:18 +0200 Subject: [PATCH 1/3] enable oled --- keyboards/bastardkb/dilemma/3x5_3/rules.mk | 2 ++ 1 file changed, 2 insertions(+) diff --git a/keyboards/bastardkb/dilemma/3x5_3/rules.mk b/keyboards/bastardkb/dilemma/3x5_3/rules.mk index 607760094832..ad97fdf734b8 100644 --- a/keyboards/bastardkb/dilemma/3x5_3/rules.mk +++ b/keyboards/bastardkb/dilemma/3x5_3/rules.mk @@ -1,3 +1,5 @@ SERIAL_DRIVER = vendor POINTING_DEVICE_DRIVER = cirque_pinnacle_spi + +OLED_ENABLE = yes From ef4e1b3eae07efdcce935ed219ee8a27550b8a5d Mon Sep 17 00:00:00 2001 From: Vince van Oosten Date: Sun, 4 Aug 2024 13:49:03 +0200 Subject: [PATCH 2/3] enable I2C 1 --- keyboards/bastardkb/dilemma/3x5_3/mcuconf.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/keyboards/bastardkb/dilemma/3x5_3/mcuconf.h b/keyboards/bastardkb/dilemma/3x5_3/mcuconf.h index 52b726a56d5f..e9f96d0e2f8d 100644 --- a/keyboards/bastardkb/dilemma/3x5_3/mcuconf.h +++ b/keyboards/bastardkb/dilemma/3x5_3/mcuconf.h @@ -21,3 +21,6 @@ #undef RP_SPI_USE_SPI0 #define RP_SPI_USE_SPI0 TRUE + +#undef RP_I2C_USE_I2C1 +#define RP_I2C_USE_I2C1 TRUE From 3d53589818a5e9ff0562eadb057d775679eee04c Mon Sep 17 00:00:00 2001 From: Vince van Oosten Date: Sun, 4 Aug 2024 13:50:07 +0200 Subject: [PATCH 3/3] add build script --- build-dilemma-firmware.sh | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 build-dilemma-firmware.sh diff --git a/build-dilemma-firmware.sh b/build-dilemma-firmware.sh new file mode 100644 index 000000000000..a9d943ae5e5c --- /dev/null +++ b/build-dilemma-firmware.sh @@ -0,0 +1,28 @@ +#!/usr/bin/env bash +set -euo pipefail + +keyboard=bastardkb/dilemma/3x5_3 +model=default + +firmware="${keyboard////_}_${model}.uf2" + +function copy_firmware() { + + printf >&2 'please connect %s and press the reset button twice\n' "${1}" + qmk flash -kb "${keyboard}" -km "${model}" + sync + sleep 1 +} + +rm -f "${firmware}" + +qmk compile -c -kb "${keyboard}" -km "${model}" + +exit 0 + +printf >&2 'Copying firmware, please disconnect all cables first\n' +copy_firmware 'right side' +copy_firmware 'left side' +printf >&2 "Done!" + +