Open bnv12345 opened 2 weeks ago
Which constructor did you use as a starting point?
U8G2_ST7571_128X128_F_4W_HW_SPI
Hmm.. looks difficult. The E8 command changes the data length in 3-wire mode. However, the 3-wire mode is just the same as the 4-wire mode, except that the data transfer is prefixed by the E8 command. The argument to the E8 must not be constant (as in your example) but instead it should be calculated based on the current values c and arg_int (otherwise it will not work in u8x8 mode).
Additionally as you pointed out, it should be called 3W_SPI, but actually the 3W SPI protocol is very much different. I think I need to look more deeper into this.
Yes, I didn’t even think about the u8x8 mode.
Note to myself: We need a new 3W CAD procedure and a new interface for the code generator, the above command should be sent in the CAD procedure.
Hello. I bought this display from the Chinese.
Added a couple of lines of code to the file - u8x8_d_st7571.c
I added these two lines: u8x8_cad_SendCmd(u8x8, 0x0E8); // Set Display Data Length (DDL) command - 11101000 u8x8_cad_SendCmd(u8x8, 0x080); // Display Data Length (bytes) - 128
Everything worked great
Can you add a constructor under this display? I think it should look like this:
U8G2_ST7571_128X128_F_3W_HW_SPI u8g2(U8G2_R0, / cs=/ 10, / reset=/ 8);