File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -58,10 +58,8 @@ Usage Example
58
58
# Finally you can optionally specify a custom I2C address of the HT16k33 like:
59
59
#matrix = matrix.Matrix16x8(i2c, address=0x70)
60
60
61
- # Clear the matrix. Always call show after changing pixels to make the display
62
- # update visible!
61
+ # Clear the matrix.
63
62
matrix.fill(0)
64
- matrix.show()
65
63
66
64
# Set a pixel in the origin 0,0 position.
67
65
matrix.pixel[0, 0] = 1
@@ -77,7 +75,6 @@ Usage Example
77
75
# Set the blink rate
78
76
matrix.blink_rate = 2
79
77
80
- matrix.show()
81
78
82
79
Contributing
83
80
============
Original file line number Diff line number Diff line change 39
39
40
40
41
41
class HT16K33 :
42
- """The base class for all displays. Contains common methods."""
42
+ """
43
+ The base class for all displays. Contains common methods.
44
+
45
+ :param int address: The I2C addess of the HT16K33.
46
+ :param bool auto_write: True if the display should immediately change when
47
+ set. If False, `show` must be called explicitly.
48
+ """
43
49
def __init__ (self , i2c , address = 0x70 , auto_write = True ):
44
50
self .i2c_device = i2c_device .I2CDevice (i2c , address )
45
51
self ._temp = bytearray (1 )
You can’t perform that action at this time.
0 commit comments