Skip to content

Update readme with simpler Hello World #45

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 3 commits into from
Nov 12, 2020

Conversation

lastcoolnameleft
Copy link
Contributor

As per #41

README.rst Outdated

# Scroll it
matrixportal.scroll_text(SCROLL_DELAY)

Copy link
Contributor

@FoamyGuy FoamyGuy Nov 10, 2020

Choose a reason for hiding this comment

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

I think maybe it wants an extra newline here at the end of the code snippet.

So it will be like this:

            # ...
            matrixportal.scroll_text(SCROLL_DELAY)


Contributing
============

Thanks for working on this!

I had some extra whitespace at the end of my code.  Thanks GH actions for catching that!
Copy link
Contributor

@FoamyGuy FoamyGuy left a comment

Choose a reason for hiding this comment

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

I tested this out on a Matrix Portal and it's working well.

I found a few small things that I think we can clean up a bit. This looks good to me beyond these.

I think it would be good eventually to rename the existing simpletest to something like bitcoin_example and then make this version from the readme be the same as simpletest in the examples folder. That can get done in a follow up after this though.

README.rst Outdated
@@ -37,55 +37,44 @@ Usage Example
.. code:: python

import time
import random
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we can get rid of this import random

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good catch. Thanks. Will remove.

README.rst Outdated
)

# Static 'Connecting' Text
Copy link
Contributor

Choose a reason for hiding this comment

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

Since we don't have 'connecting' text anymore I think we can remove this comment.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Doh! Will remove

README.rst Outdated
{ 'text': 'THIS IS BLUE', 'color': '#0846e4'},
]

matrixportal.set_text(" ", 1)
Copy link
Contributor

Choose a reason for hiding this comment

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

We might be able to remove this line? I'm not sure if it's needed. The script seems to behave the same without it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Will do. Copy/paste from previous examples.

DATA_SOURCE = "https://api.coindesk.com/v1/bpi/currentprice.json"
DATA_LOCATION = ["bpi", CURRENCY, "rate_float"]
# --- Display setup ---
matrixportal = MatrixPortal(status_neopixel=board.NEOPIXEL, debug=True)
Copy link
Collaborator

@makermelissa makermelissa Nov 10, 2020

Choose a reason for hiding this comment

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

Could you remove the debug=True? It was intended for debugging. ;) It was accidentally left in the current code.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

As a new user, the debug=True was valuable. I understand it's a left-over artifact, and it's one that I'm glad was there when I got started. If you feel strongly about it, I'll remove it.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Interesting, I didn't realize it was so helpful. I suppose we can leave it if you like.

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.

Looks good to me. Tested fine.

@makermelissa makermelissa merged commit a805d08 into adafruit:master Nov 12, 2020
adafruit-adabot added a commit to adafruit/Adafruit_CircuitPython_Bundle that referenced this pull request Nov 13, 2020
@lastcoolnameleft lastcoolnameleft deleted the patch-1 branch November 13, 2020 15:55
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