Skip to content

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

Merged
merged 8 commits into from
Feb 11, 2017
Merged

Docs, spelling and testing #4

merged 8 commits into from
Feb 11, 2017

Conversation

mcauser
Copy link
Contributor

@mcauser mcauser commented Jan 4, 2017

I also moved tests out of i2c_lcd.pyb into a new file i2c_lcd_test.pyb, to match other examples.

@mcauser mcauser changed the title Doc, spelling and testing Docs, spelling and testing Jan 4, 2017
@@ -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
Copy link
Owner

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

Copy link
Owner

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.

@@ -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
Copy link
Owner

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.

Copy link
Owner

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.

@dhylands dhylands merged commit e07e0e3 into dhylands:master Feb 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants