@@ -26,23 +26,23 @@ This is easily achieved by downloading
26
26
Usage Example
27
27
=============
28
28
29
- ```
30
- import board
31
- import dotstar_featherwing
32
- wing = dotstar_featherwing.DotstarFeatherwing(board.D13, board.D11)
33
-
34
- xmas = ["..y.w......w",
35
- "..G.....w...",
36
- "..G..w....w.",
37
- ".GGG...w....",
38
- "GGGGG.......",
39
- "wwwwwwwwwwww"]
40
-
41
- xmas_colours = {'w': (0x20, 0x20, 0x20),
42
- 'W': (0xFF, 0xFF, 0xFF),
43
- 'G': (0x00, 0x20, 0x00),
44
- 'y': (0x20, 0x20, 0x00),
45
- 'Y': (0xFF, 0xFF, 0x00)}
29
+ .. code-block :: python
30
+ import board
31
+ import dotstar_featherwing
32
+ wing = dotstar_featherwing.DotstarFeatherwing(board.D13, board.D11)
33
+
34
+ xmas = [" ..y.w......w" ,
35
+ " ..G.....w..." ,
36
+ " ..G..w....w." ,
37
+ " .GGG...w...." ,
38
+ " GGGGG......." ,
39
+ " wwwwwwwwwwww" ]
40
+
41
+ xmas_colours = {' w' : (0x 20 , 0x 20 , 0x 20 ),
42
+ ' W' : (0x FF , 0x FF , 0x FF ),
43
+ ' G' : (0x 00 , 0x 20 , 0x 00 ),
44
+ ' y' : (0x 20 , 0x 20 , 0x 00 ),
45
+ ' Y' : (0x FF , 0x FF , 0x 00 )}
46
46
47
47
wing.display_coloured_image(xmas, xmas_colours)
48
48
```
0 commit comments