File tree Expand file tree Collapse file tree 1 file changed +1
-56
lines changed Expand file tree Collapse file tree 1 file changed +1
-56
lines changed Original file line number Diff line number Diff line change @@ -56,62 +56,7 @@ To install in a virtual environment in your current project:
56
56
Usage Example
57
57
=============
58
58
59
- adafruit_max7219.Matrix8x8 Example
60
- ----------------------------------
61
-
62
- .. code-block :: python
63
-
64
- from adafruit_max7219 import matrices
65
- from board import TX , RX , A2
66
- import busio
67
- import digitalio
68
- import time
69
-
70
- clk = RX
71
- din = TX
72
- cs = digitalio.DigitalInOut(A2)
73
-
74
- spi = busio.SPI(clk, MOSI = din)
75
- display = matrices.Matrix8x8(spi, cs)
76
- while True :
77
- display.brightness(3 )
78
-
79
- display.fill(1 )
80
- display.pixel(3 , 3 )
81
- display.pixel(3 , 4 )
82
- display.pixel(4 , 3 )
83
- display.pixel(4 , 4 )
84
- display.show()
85
- time.sleep(3.0 )
86
-
87
- display.clear_all()
88
- s = ' Hello, World!'
89
- for c in range (len (s)* 8 ):
90
- display.fill(0 )
91
- display.text(s,- c,0 )
92
- display.show()
93
- time.sleep(0.25 )
94
-
95
-
96
- adafruit_max7219.BCDDigits Example
97
- ----------------------------------
98
-
99
- .. code-block :: python
100
-
101
- from adafruit_max7219 import bcddigits
102
- from board import TX , RX , A2
103
- import bitbangio
104
- import digitalio
105
-
106
- clk = RX
107
- din = TX
108
- cs = digitalio.DigitalInOut(A2)
109
-
110
- spi = bitbangio.SPI(clk, MOSI = din)
111
- display = bcddigits.BCDDigits(spi, cs, nDigits = 8 )
112
- display.clear_all()
113
- display.show_str(0 ,' {:9.2f } ' .format(- 1234.56 ))
114
- display.show()
59
+ See the ``examples/ `` folder example uses of this library.
115
60
116
61
Documentation
117
62
=============
You can’t perform that action at this time.
0 commit comments