diff --git a/csrc/u8x8.h b/csrc/u8x8.h index fc7d5d42..d4a07759 100644 --- a/csrc/u8x8.h +++ b/csrc/u8x8.h @@ -211,6 +211,8 @@ struct u8x8_display_info_struct /* AVR: below 70: DIV2, 8 MHz, >= 70 --> 4MHz clock (DIV4) */ uint8_t sck_pulse_width_ns; /* UC1701: 50ns */ + /* previous name "sck_takeover_edge" renamed to "spi_mode" */ + /* bit 0 of spi_mode is equal to the value of the previous variable sck_takeover_edge */ /* SPI has four clock modes: */ /* 0: clock active high, data out on falling edge */ /* 1: clock active high, data out on rising edge */ diff --git a/csrc/u8x8_d_st7920.c b/csrc/u8x8_d_st7920.c index 0fefca30..e4546a6b 100644 --- a/csrc/u8x8_d_st7920.c +++ b/csrc/u8x8_d_st7920.c @@ -156,7 +156,7 @@ static const u8x8_display_info_t u8x8_st7920_192x32_display_info = /* post_reset_wait_ms = */ 6, /* sda_setup_time_ns = */ 20, /* sck_pulse_width_ns = */ 140, /* datasheet ST7920 */ - /* spi_mode = */ 1, /* active high, rising edge */ + /* spi_mode = */ 1, /* old: sck_takeover_edge, new: active high (bit 1), rising edge (bit 0) */ /* i2c_bus_clock_100kHz = */ 4, /* data_setup_time_ns = */ 30, /* write_pulse_width_ns = */ 40,