logo

qmk_firmware

custom branch of QMK firmware git clone https://anongit.hacktivis.me/git/qmk_firmware.git

readme.md (2712B)


  1. # bluepill splittest
  2. This is the splittest example for the bluepill MCU.
  3. To trigger keypress, short together pins _B10_ and _B1_.
  4. ## Keyboard Configuration
  5. The type of communication (bitbang, serial (half/full duplex)) is set by the keymap `config.h` file with variables with `SPLIT_` prefix.
  6. So this example uses:
  7. - `config.h` to set which SDI to use for serial. Either define `USE_SDI1_ON_STANDARD_ROLE_PINS`, `USE_SDI1_ON_ALTERNATE_ROLE_PINS` or `USE_SDI2` before the `#ifdef` that configures the default case when none of these variable is defined.
  8. - `post_config.h` for defining the communication pins between the halves once the keymap is configured.
  9. On your keyboard, you most likely will only use `config.h` because you'd have already chosen your communication scheme: serial type, SDI, pins.
  10. ## Wiring
  11. ### Switches
  12. - Add switches to both Bluepills across B10 and B1 pins
  13. ### Handedness
  14. Have a look at the [handedness documentation](https://docs.qmk.fm/#/feature_split_keyboard?id=setting-handedness)
  15. - Add pull-up resistor to left side between VCC and A7
  16. - Add pull-down resistors to right side between GND and A7
  17. ### Send power to the other half
  18. - Connect the following pins on both sides together: GND, VCC
  19. ### Halves data connection
  20. Choose one of the connection type
  21. #### serial - bitbang
  22. - Connect the B8 pins on both sides together
  23. #### serial - usart half duplex
  24. Check the [documentation](https://docs.qmk.fm/#/serial_driver?id=usart-half-duplex) to determine the pull-up resistor.
  25. - To use the default usart (USART1) with the standard role pins,
  26. - Connect the A9 pins on both sides together and to add a pull-up resistor on one of these pins
  27. - Define USE_SDI1_ON_STANDARD_ROLE_PINS in config.h
  28. - To use the default usart (USART1) with the alternate role pins,
  29. - Connect the B6 pins on both sides together and to add a pull-up resistor on one of these pins
  30. - Define USE_SDI1_ON_ALTERNATE_ROLE_PINS in config.h
  31. - To use the usart2 (USART2) pins,
  32. - Connect the A2 pins on both sides together and to add a pull-up resistor on one of these pins
  33. - Define USE_SDI2 in config.h
  34. #### serial - usart full duplex
  35. - To use the default usart (USART1) with the standard role pins,
  36. - Connect the mpins on A9, A10 one to the other on each side
  37. - Define USE_SDI1_ON_STANDARD_ROLE_PINS in config.h
  38. - To use the default usart (USART1) with the alternate role pins,
  39. - Connect the pins B6, B7 one to the other on each side
  40. - Define USE_SDI1_ON_ALTERNATE_ROLE_PINS in config.h
  41. - To use the usart2 (USART2) pins,
  42. - Connect the pins A2, A3 one to the other on each side
  43. - Define USE_SDI2 in config.h