Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to compile with oled support? (ssd1306) #63

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions build-dilemma-firmware.sh
Original file line number Diff line number Diff line change
@@ -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!"


3 changes: 3 additions & 0 deletions keyboards/bastardkb/dilemma/3x5_3/mcuconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 2 additions & 0 deletions keyboards/bastardkb/dilemma/3x5_3/rules.mk
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
SERIAL_DRIVER = vendor

POINTING_DEVICE_DRIVER = cirque_pinnacle_spi

OLED_ENABLE = yes
Loading