diff --git a/Adafruit_CharLCD/Adafruit_CharLCD.py b/Adafruit_CharLCD/Adafruit_CharLCD.py index bbb8955a..22060c94 100755 --- a/Adafruit_CharLCD/Adafruit_CharLCD.py +++ b/Adafruit_CharLCD/Adafruit_CharLCD.py @@ -229,7 +229,7 @@ def write4bits(self, bits, char_mode=False): def delayMicroseconds(self, microseconds): - seconds = microseconds / 1000000 # divide microseconds by 1 million for seconds + seconds = microseconds / float(1000000) # divide microseconds by 1 million for seconds sleep(seconds)