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

    increment files in SD card in python on Sipy

    Scheduled Pinned Locked Moved MicroPython
    sipycodeingmicropython
    4 Posts 3 Posters 1.5k Views 4 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.
    • C Offline
      chrisi
      last edited by chrisi

      I am having trouble storing more then 100kb in a txt file on an SD card connected to my sipy. I have tryed to create a new file when the data gets close to the max it can store.
      0_1499840882184_day7.PNG
      this is some of the code i am using.
      this is the error i am getting
      0_1499841041764_day7.2.PNG
      any help would be great

      thanks,

      robert-hhR 1 Reply Last reply Reply Quote 0
      • B Offline
        bucknall
        last edited by

        Hi @chrisi,

        This error doesn't look like its related to the SD but rather the accelerometer library you are using - if it's not an issue, would you mind posting your entire main.py please?

        This way I can better troubleshoot your problem!

        Thanks,

        Alex

        Developer Evangelist - Pycom

        1 Reply Last reply Reply Quote 0
        • robert-hhR Offline
          robert-hh @chrisi
          last edited by

          @chrisi Did you mount the SD card before trying to write? That's not include in the code snippet you used. And I am a little bit puzzled that you get an I2C buss error?

          1 Reply Last reply Reply Quote 0
          • C Offline
            chrisi
            last edited by

            Thanks anyway but the problem fixed itself after I updated the firmware and made a few other changes to my code but i still don't know what the problem was but am all good now.

            Kind regards,
            Chris

            1 Reply Last reply Reply Quote 1

            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