File tree 2 files changed +6
-4
lines changed
2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -71,13 +71,14 @@ Usage Example
71
71
import busio
72
72
import displayio
73
73
import terminalio
74
+ import fourwire
74
75
from adafruit_display_text import label
75
76
import adafruit_displayio_sh1106
76
77
77
78
displayio.release_displays()
78
79
79
80
spi = busio.SPI(board.SCK, board.MOSI)
80
- display_bus = displayio .FourWire(
81
+ display_bus = fourwire .FourWire(
81
82
spi,
82
83
command=board.OLED_DC,
83
84
chip_select=board.OLED_CS,
@@ -92,7 +93,7 @@ Usage Example
92
93
93
94
# Make the display context
94
95
splash = displayio.Group()
95
- display.show( splash)
96
+ display.root_group = splash
96
97
97
98
color_bitmap = displayio.Bitmap(WIDTH, HEIGHT, 1)
98
99
color_palette = displayio.Palette(1)
Original file line number Diff line number Diff line change 6
6
import board
7
7
import busio
8
8
import displayio
9
+ import fourwire
9
10
import terminalio
10
11
from adafruit_display_text import label
11
12
import adafruit_displayio_sh1106
12
13
13
14
displayio .release_displays ()
14
15
15
16
spi = busio .SPI (board .SCK , board .MOSI )
16
- display_bus = displayio .FourWire (
17
+ display_bus = fourwire .FourWire (
17
18
spi ,
18
19
command = board .OLED_DC ,
19
20
chip_select = board .OLED_CS ,
28
29
29
30
# Make the display context
30
31
splash = displayio .Group ()
31
- display .show ( splash )
32
+ display .root_group = splash
32
33
33
34
color_bitmap = displayio .Bitmap (WIDTH , HEIGHT , 1 )
34
35
color_palette = displayio .Palette (1 )
You can’t perform that action at this time.
0 commit comments