Skip to content

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

Merged
merged 2 commits into from
Jul 22, 2019

Conversation

jtrip
Copy link
Contributor

@jtrip jtrip commented Jul 22, 2019

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.

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:
Copy link
Member

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:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto

@jtrip
Copy link
Contributor Author

jtrip commented Jul 22, 2019

Ah yes, sorry I misunderstood you the first time you described it. Having it do less makes sense to me!
That should be good now.

@ladyada ladyada requested a review from makermelissa July 22, 2019 03:07
@ladyada
Copy link
Member

ladyada commented Jul 22, 2019

@makermelissa please review when you can

Copy link
Collaborator

@makermelissa makermelissa left a 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.

@makermelissa makermelissa merged commit 8369185 into adafruit:master Jul 22, 2019
adafruit-adabot added a commit to adafruit/Adafruit_CircuitPython_Bundle that referenced this pull request Jul 22, 2019
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
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.

3 participants