Welcome to the Pycom forum Forum
    • \[\[global:header.categories\]\]
    • \[\[global:header.recent\]\]
    • \[\[global:header.tags\]\]
    • \[\[global:header.popular\]\]
    • Login

    Explore Pybytes | Official Documentation | Report a Firmware Bug/Issue | GitHub

    Replace a line instead of overwriting

    Scheduled Pinned Locked Moved SiPy
    1 Posts 1 Posters 201 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • B Offline
      brossingo
      last edited by

      weight.py
      Hello, I am using the following library : https://github.com/pycom/pycom-micropython-sigfox/blob/master/drivers/display/ssd1306.py to work with a SSD1306 screen. I can successfully show sentences on the screen, however if you look at my piece of code, I use a time.sleep(2) to display another sentence on the same line as the previous one. As expected, there's a conflict between ">5" and "Just waited >", as the first one hasn't been replaced. How can I do to not have two lines written at the same place as it looks blurred ? I know you'll say that I still have plenty of space on the screen and I should use it, but I have other lines coming and I'd like to do the same thing. Hope I was being clear enough.
      Thank you

      1 Reply Last reply Reply Quote 0

      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

      With your input, this post could be even better 💗

      Register Login
      • 1 / 1
      • First post
        Last post

      Pycom on Twitter

      Pycom