-
Notifications
You must be signed in to change notification settings - Fork 116
Docs, spelling and testing #4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
lcd/pyb_i2c_lcd_test.py
Outdated
@@ -1,7 +1,7 @@ | |||
"""Implements a HD44780 character LCD connected via PCF8574 on I2C.""" | |||
|
|||
from pyb import I2C, delay, millis | |||
from lcd_api import LcdApi | |||
from pyb_i2c_lcd import I2cLcd |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line is already in master
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For some reason, I wasn't seeing all of the commits, so my comments might not be relevant. Let me review everything as a whole.
lcd/pyb_i2c_lcd_test.py
Outdated
@@ -1,7 +1,7 @@ | |||
"""Implements a HD44780 character LCD connected via PCF8574 on I2C.""" | |||
|
|||
from pyb import I2C, delay, millis | |||
from lcd_api import LcdApi |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had to add that line on my OpenMV board or I ran into recursion depth issues.
pyb_i2c_lcd_test was importing pyb_i2c_lcd, which was importing lcd_api. On my pyboard this works fine, but on my OpenMV board, it would fail. By adding an import of LcdApi at this level, the import of LcdApi in pyb_i2c_lcd would just import the already imported module.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok - this comment is still valid. but I see the next one is correcting an earlier deletion.
I also moved tests out of
i2c_lcd.pyb
into a new filei2c_lcd_test.pyb
, to match other examples.