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!" + + 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 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