diff options
| author | gromwalh <15847180+gromwalh@users.noreply.github.com> | 2018-10-26 14:12:40 -0700 |
|---|---|---|
| committer | Drashna Jaelre <drashna@live.com> | 2018-10-26 14:12:40 -0700 |
| commit | e22c3992454ade93ccaef70ab077e79a4b2a5ef0 (patch) | |
| tree | 7fb5f8df828f7b82c2d7fff3de082ac13394c3f4 | |
| parent | cc8744548108b1c1f820fb411ac3bf313aca1f5f (diff) | |
| download | qmk_firmware-e22c3992454ade93ccaef70ab077e79a4b2a5ef0.tar.gz qmk_firmware-e22c3992454ade93ccaef70ab077e79a4b2a5ef0.zip | |
Ergodox Infinity: Swapped Row and Column in comments (#4247)
When comparing the pins in this file to the Ergodox Infinity schematic, it seems that the first section is describing the rows and the second section is describing the columns.
| -rw-r--r-- | keyboards/ergodox_infinity/matrix.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/keyboards/ergodox_infinity/matrix.c b/keyboards/ergodox_infinity/matrix.c index 3baa07f58..3a0a17928 100644 --- a/keyboards/ergodox_infinity/matrix.c +++ b/keyboards/ergodox_infinity/matrix.c | |||
| @@ -44,14 +44,14 @@ static uint16_t debouncing_time = 0; | |||
| 44 | 44 | ||
| 45 | void matrix_init(void) | 45 | void matrix_init(void) |
| 46 | { | 46 | { |
| 47 | /* Column(sense) */ | 47 | /* Row(sense) */ |
| 48 | palSetPadMode(GPIOD, 1, PAL_MODE_INPUT_PULLDOWN); | 48 | palSetPadMode(GPIOD, 1, PAL_MODE_INPUT_PULLDOWN); |
| 49 | palSetPadMode(GPIOD, 4, PAL_MODE_INPUT_PULLDOWN); | 49 | palSetPadMode(GPIOD, 4, PAL_MODE_INPUT_PULLDOWN); |
| 50 | palSetPadMode(GPIOD, 5, PAL_MODE_INPUT_PULLDOWN); | 50 | palSetPadMode(GPIOD, 5, PAL_MODE_INPUT_PULLDOWN); |
| 51 | palSetPadMode(GPIOD, 6, PAL_MODE_INPUT_PULLDOWN); | 51 | palSetPadMode(GPIOD, 6, PAL_MODE_INPUT_PULLDOWN); |
| 52 | palSetPadMode(GPIOD, 7, PAL_MODE_INPUT_PULLDOWN); | 52 | palSetPadMode(GPIOD, 7, PAL_MODE_INPUT_PULLDOWN); |
| 53 | 53 | ||
| 54 | /* Row(strobe) */ | 54 | /* Column(strobe) */ |
| 55 | palSetPadMode(GPIOB, 2, PAL_MODE_OUTPUT_PUSHPULL); | 55 | palSetPadMode(GPIOB, 2, PAL_MODE_OUTPUT_PUSHPULL); |
| 56 | palSetPadMode(GPIOB, 3, PAL_MODE_OUTPUT_PUSHPULL); | 56 | palSetPadMode(GPIOB, 3, PAL_MODE_OUTPUT_PUSHPULL); |
| 57 | palSetPadMode(GPIOB, 18, PAL_MODE_OUTPUT_PUSHPULL); | 57 | palSetPadMode(GPIOB, 18, PAL_MODE_OUTPUT_PUSHPULL); |
