Skip to content

Commit

Permalink
Updated durgod/dgk6x I2C timings
Browse files Browse the repository at this point in the history
  • Loading branch information
dkjer authored and J-Sully committed May 26, 2021
1 parent d933d94 commit a13581a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
12 changes: 6 additions & 6 deletions keyboards/durgod/dgk6x/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,12 @@
#define I2C1_SCL_PAL_MODE 1
#define I2C1_SDA_PAL_MODE 1

/* Set I2C speed to 1Mhz */
#define I2C1_TIMINGR_PRESC 0U
#define I2C1_TIMINGR_SCLDEL 7U
#define I2C1_TIMINGR_SDADEL 0U
#define I2C1_TIMINGR_SCLH 9U
#define I2C1_TIMINGR_SCLL 21U
/* Set I2C speed to 400kHz, 300ns Tr, 14ns Tf */
#define I2C1_TIMINGR_PRESC 0x1U
#define I2C1_TIMINGR_SCLDEL 0x9U
#define I2C1_TIMINGR_SDADEL 0x0U
#define I2C1_TIMINGR_SCLH 0x0cU
#define I2C1_TIMINGR_SCLL 0x22U

#define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended
#define RGB_MATRIX_FRAMEBUFFER_EFFECTS
Expand Down
8 changes: 3 additions & 5 deletions keyboards/durgod/dgk6x/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,8 @@ For first Flashing from initial Stock's Firmware
- Make a Flash Image's Backup in case you wanted to restore the Keyboard to Stock's Image:
- Using dfu-util:


dfu-util --list
dfu-util --alt 0 --dfuse-address 0x08000000 --upload ${OLD_STOCK_BIN}
dfu-util --list
dfu-util --alt 0 --dfuse-address 0x08000000 --upload ${OLD_STOCK_BIN}

2. Flash the QMK Firmware Image.
- Put board into Bootloader mode, using the same method as when backing up the original Firmware (above)
Expand All @@ -36,8 +35,7 @@ For first Flashing from initial Stock's Firmware
- Using DFuseDemo.exe if STTub30 driver is used.
- Using dfu-util:


dfu-util --alt 0 --dfuse-address 0x08000000 --upload ${NEW_QMK_BIN}
dfu-util --alt 0 --dfuse-address 0x08000000 --download ${NEW_QMK_BIN}

You can short Boot0 to Vdd by shorting R19 to C30 on the sides closest to the processor, as shown:

Expand Down

0 comments on commit a13581a

Please sign in to comment.