Skip to content

Commit 4de28dd

Browse files
committed
Merge pull request adafruit#70 from fernandofussuma/master
Fixed missing blink method and comments change
2 parents 1f1931a + de18938 commit 4de28dd

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

Adafruit_CharLCD/Adafruit_CharLCD.py

+6-7
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ def begin(self, cols, lines):
9494
if (lines > 1):
9595
self.numlines = lines
9696
self.displayfunction |= self.LCD_2LINE
97-
self.currline = 0
9897

9998

10099
def home(self):
@@ -134,30 +133,30 @@ def display(self):
134133

135134

136135
def noCursor(self):
137-
""" Turns the underline cursor on/off """
136+
""" Turns the underline cursor off """
138137

139138
self.displaycontrol &= ~self.LCD_CURSORON
140139
self.write4bits(self.LCD_DISPLAYCONTROL | self.displaycontrol)
141140

142141

143142
def cursor(self):
144-
""" Cursor On """
143+
""" Turns the underline cursor on """
145144

146145
self.displaycontrol |= self.LCD_CURSORON
147146
self.write4bits(self.LCD_DISPLAYCONTROL | self.displaycontrol)
148147

149148

150149
def noBlink(self):
151-
""" Turn on and off the blinking cursor """
150+
""" Turn the blinking cursor off """
152151

153152
self.displaycontrol &= ~self.LCD_BLINKON
154153
self.write4bits(self.LCD_DISPLAYCONTROL | self.displaycontrol)
155154

156155

157-
def noBlink(self):
158-
""" Turn on and off the blinking cursor """
156+
def blink(self):
157+
""" Turn the blinking cursor on """
159158

160-
self.displaycontrol &= ~self.LCD_BLINKON
159+
self.displaycontrol |= self.LCD_BLINKON
161160
self.write4bits(self.LCD_DISPLAYCONTROL | self.displaycontrol)
162161

163162

0 commit comments

Comments
 (0)