-
Notifications
You must be signed in to change notification settings - Fork 38
Update simple example and usage example in readme #16
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
…ter imports for pep 8
text = "Hello world" | ||
text_area = label.Label(terminalio.FONT, text=text) | ||
text_area.x = 10 | ||
text_area.y = 10 | ||
board.DISPLAY.show(text_area) | ||
while True: |
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.
show and then while True: pass
text_area = label.Label(terminalio.FONT, text=text) | ||
text_area.x = 10 | ||
text_area.y = 10 | ||
while True: |
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.
ditto
Ah yes, sorry I misunderstood you the first time you described it. Having it do less makes sense to me! |
@makermelissa please review when you can |
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.
Tested successfully and look good.
Updating https://github.com/adafruit/Adafruit_CircuitPython_INA260 to 1.1.3 from 1.1.2: > Merge pull request adafruit/Adafruit_CircuitPython_INA260#6 from siddacious/master Updating https://github.com/adafruit/Adafruit_CircuitPython_Display_Text to 2.1.2 from 2.1.1: > Merge pull request adafruit/Adafruit_CircuitPython_Display_Text#16 from jtrip/master > Merge pull request adafruit/Adafruit_CircuitPython_Display_Text#14 from adafruit/ladyada-patch-1 > Merge pull request adafruit/Adafruit_CircuitPython_Display_Text#12 from TG-Techie/patch-1 Updating https://github.com/adafruit/Adafruit_CircuitPython_Bundle/circuitpython_library_list.md to NA from NA: > Added the following libraries: Adafruit_CircuitPython_Nunchuk
Update simple example and usage example in readme, additional line after imports for pep 8.
As mentioned in #15 the simplest test example was blank although there was a good example in the readme file. I update the simple test file to match the usage example in the readme file and also put the display updating call in a
while True:
loop so a user will be sure to see the output.I also added an additional blank line after the import statements in that file for pep 8 compliance. I also then copied that code to the usage example in the readme so that the update is reflected there.
I built the docs to verify the changes were reflected there, they were and I saw no other relevant aspect of the docs that needed updating. Even though the simple test file was blank the docs were already pointing to it, probably because there are so many of these wonderful libraries. 😄
If the pep 8 line is not welcome I can remove that and resubmit.