Skip to content
This repository was archived by the owner on Sep 30, 2019. It is now read-only.

Fixed missing blink method and comments change #70

Merged
merged 1 commit into from
Jul 14, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 6 additions & 7 deletions Adafruit_CharLCD/Adafruit_CharLCD.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ def begin(self, cols, lines):
if (lines > 1):
self.numlines = lines
self.displayfunction |= self.LCD_2LINE
self.currline = 0


def home(self):
Expand Down Expand Up @@ -134,30 +133,30 @@ def display(self):


def noCursor(self):
""" Turns the underline cursor on/off """
""" Turns the underline cursor off """

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


def cursor(self):
""" Cursor On """
""" Turns the underline cursor on """

self.displaycontrol |= self.LCD_CURSORON
self.write4bits(self.LCD_DISPLAYCONTROL | self.displaycontrol)


def noBlink(self):
""" Turn on and off the blinking cursor """
""" Turn the blinking cursor off """

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


def noBlink(self):
""" Turn on and off the blinking cursor """
def blink(self):
""" Turn the blinking cursor on """

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


Expand Down