We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I have next code:
import time from microbit import * def writeToLocalStrage(): with open('log.txt') as old_file: text_from_file_before = old_file.read() with open('log.txt', 'w') as my_file: display.show(text_from_file_before) content = str(temperature()) content = text_from_file_before + content content = content + ';' my_file.write(content) while True: writeToLocalStrage() time.sleep(2)
if I want to get it with: ufs get log.txt I get only 3x 28;28;28; but never more then this, is the memory full or my script is not good?
The text was updated successfully, but these errors were encountered:
The above code works fine for me, it wrote up to at least 10 entries (and then I stopped it).
I suggest to check what other files you have on the microbit's filesystem.
Sorry, something went wrong.
No branches or pull requests
I have next code:
if I want to get it with:
ufs get log.txt
I get only 3x
28;28;28;
but never more then this, is the memory full or my script is not good?
The text was updated successfully, but these errors were encountered: