faq, issue #390
This commit is contained in:
parent
c44d16b1e8
commit
e843c6420c
14
doc/faq.txt
14
doc/faq.txt
|
@ -194,11 +194,17 @@ https://github.com/olikraus/u8g2/tree/master/tools/font/bdfconv
|
|||
Use the Makefile in this directory to create a Linux binary.
|
||||
|
||||
Q: How can I use multiple SPI Displays?
|
||||
A: For each additional display, separate CS (Chip select) and RST (Reset) lines are required.
|
||||
A: For each additional display, separate CS (Chip select) is required.
|
||||
There are two options for the RST (Reset) line:
|
||||
Also use separate lines or use the same GPIO pin.
|
||||
|
||||
// Setup display1 and display2
|
||||
U8G2_SSD1306_128X64_NONAME_F_4W_SW_SPI display1(U8G2_R0, /*CLK*/ 18, /*MOSI*/ 23, /*CS*/ 16,/*DC*/ 17, /*RS*/ 4);
|
||||
U8G2_SSD1306_128X64_NONAME_F_4W_SW_SPI display2(U8G2_R0, /*CLK*/ 18, /*MOSI*/ 23, /*CS*/ 15,/*DC*/ 17, /*RS*/ 4);
|
||||
// Setup display1 and display2, both reset lines are connected to 4, execute display1.begin() first.
|
||||
U8G2_SSD1306_128X64_NONAME_F_4W_SW_SPI display1(U8G2_R0, /*CLK*/ 18, /*MOSI*/ 23, /*CS*/ 16,/*DC*/ 17, /*RST*/ 4);
|
||||
U8G2_SSD1306_128X64_NONAME_F_4W_SW_SPI display2(U8G2_R0, /*CLK*/ 18, /*MOSI*/ 23, /*CS*/ 15,/*DC*/ 17, /*RST*/ U8X8_PIN_NONE);
|
||||
|
||||
// Setup display1 and display2, separate reset lines
|
||||
U8G2_SSD1306_128X64_NONAME_F_4W_SW_SPI display1(U8G2_R0, /*CLK*/ 18, /*MOSI*/ 23, /*CS*/ 16,/*DC*/ 17, /*RST*/ 4);
|
||||
U8G2_SSD1306_128X64_NONAME_F_4W_SW_SPI display2(U8G2_R0, /*CLK*/ 18, /*MOSI*/ 23, /*CS*/ 15,/*DC*/ 17, /*RST*/ 5);
|
||||
|
||||
Ensure that the buffer is sent after printing with each display as follows.
|
||||
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
# without 'v' prefix
|
||||
echo -n "2.22.9"
|
||||
echo -n "2.22.10"
|
||||
|
|
Loading…
Reference in New Issue