Skip to content

Commit ae139fe

Browse files
committed
add zoom function
1 parent 9453c58 commit ae139fe

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

‎LED/OLED_I2C_ASC/oled.py‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,10 @@ def draw(self):
9898
if self._DRAW:
9999
self.set_pos()
100100
self.i2c.writeto(self.ADDR, screen)
101+
102+
def zoom(self, z=1):
103+
d = 1 if z else 0
104+
self.command([0xD6,d])
101105

102106
def line(self, x1, y1, x2, y2, c=1):
103107
return

0 commit comments

Comments
 (0)