qmk-firmware/keyboards/handwired/onekey/blackpill_f401
Sergey Vlasov 0dee334bce
handwired/onekey/blackpill_f401: Fix I2C pin config mismatch (#10322)
By default the `i2c_master` driver for ChibiOS uses the B6 pin for
`I2C1_SCL` and the B7 pin for `I2C1_SDA`.  However, the ChibiOS board
file used for the F401 Blackpill board (`ST_STM32F401C_DISCOVERY`)
configures B6 as `I2C1_SCL` and B9 as `I2C1_SDA`, and if that
configuration is left unchanged, enabling the `i2c_master` driver
results in having two pins (B7 and B9) configured as `I2C1_SDA` at the
same time, which does not work properly (experimental results show that
the B9 pin still works as `I2C1_SDA` in that case, and the B7 pin does
not work).

Configure the B9 pin as an input with pull-up in `board_init()`, so that
the B7 pin can be configured as `I2C1_SDA` by the I2C driver.
2020-11-12 20:00:35 +11:00
..
blackpill_f401.c handwired/onekey/blackpill_f401: Fix I2C pin config mismatch (#10322) 2020-11-12 20:00:35 +11:00
config.h Fix backlight for F401/F411 blackpill onekey examples (#10320) 2020-09-21 22:50:39 -07:00
halconf.h Fix backlight for F401/F411 blackpill onekey examples (#10320) 2020-09-21 22:50:39 -07:00
mcuconf.h Fix backlight for F401/F411 blackpill onekey examples (#10320) 2020-09-21 22:50:39 -07:00
readme.md Add f401 and f411 blackpill examples (#7930) 2020-03-06 01:40:39 +00:00
rules.mk Add STM32F401/F411 to mcu_selection.mk (#10278) 2020-09-18 20:00:18 -07:00

f401 blackpill onekey

Supported Hardware: STM32F401CCU6 WeAct v1.3.

To trigger keypress, short together pins B0 and A7.