@@ -131,7 +131,14 @@ def text(self, string, xpos, ypos, col=1):
131
131
self .framebuf .text (string , xpos , ypos , col )
132
132
133
133
class SSD1306_I2C (_SSD1306 ):
134
- """ I2C class for SSD1306
134
+ """
135
+ I2C class for SSD1306
136
+
137
+ :param width: the width of the physical screen in pixels,
138
+ :param height: the height of the physical screen in pixels,
139
+ :param i2c: the I2C peripheral to use,
140
+ :param addr: the 8-bit bus address of the device,
141
+ :param external_vcc: whether external high-voltage source is connected.
135
142
"""
136
143
137
144
def __init__ (self , width , height , i2c , * , addr = 0x3c , external_vcc = False ):
@@ -167,7 +174,15 @@ def poweron(self):
167
174
168
175
#pylint: disable-msg=too-many-arguments
169
176
class SSD1306_SPI (_SSD1306 ):
170
- """ SPI class for SSD1306
177
+ """
178
+ SPI class for SSD1306
179
+
180
+ :param width: the width of the physical screen in pixels,
181
+ :param height: the height of the physical screen in pixels,
182
+ :param spi: the SPI peripheral to use,
183
+ :param dc: the data/command pin to use (often labeled "D/C"),
184
+ :param res: the reset pin to use,
185
+ :param cs: the chip-select pin to use (sometimes labeled "SS").
171
186
"""
172
187
def __init__ (self , width , height , spi , dc , res , cs , * ,
173
188
external_vcc = False , baudrate = 8000000 , polarity = 0 , phase = 0 ):
0 commit comments