@@ -26,23 +26,23 @@ This is easily achieved by downloading
2626Usage Example
2727=============
2828
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 )}
4646
4747 wing.display_coloured_image(xmas, xmas_colours)
4848```
0 commit comments