Skip to content

Commit cfa1a47

Browse files
authored
Clarify comment on SPI data reading
Updated comment to clarify reading from register 0x2e.
1 parent 76f684b commit cfa1a47

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • ports/espressif/boards/adafruit_magtag_2.9_grayscale

ports/espressif/boards/adafruit_magtag_2.9_grayscale/board.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ typedef enum {
143143
} display_type_t;
144144

145145
static display_type_t detect_display_type(void) {
146-
// Bitbang 4-wire SPI with a bidirectional data line to read the first word of register 0x2e,
146+
// Bitbang 4-wire SPI with a bidirectional data line to read the first byte of register 0x2e,
147147
// which is the 10-byte USER ID.
148148
// NOTE: the SSD1680 drives its response back on the MOSI/DATA line (GPIO35) in half-duplex
149149
// mode, NOT on the separate MISO line (GPIO37). Read with GPIO35 switched to input.

0 commit comments

Comments
 (0)