Git Product home page Git Product logo

Comments (3)

callimero avatar callimero commented on May 27, 2024

Console is not helpfull:

`MicroPython v1.15 on 2021-05-20; Raspberry Pi Pico with RP2040

Type "help()" for more information.

%Run -c $EDITOR_CONTENT
(2021, 8, 6, 11, 12, 0, 4, 218)
1628248320
Traceback (most recent call last):
File "� �
`

from pico-solar-system.

dr-mod avatar dr-mod commented on May 27, 2024

Hi, I haven't used the Thonny IDE, thus won't be able to help out in terms of it.
As for Pico Solar System working without RTC, the only time the RTC module is used is during the initialization of the clock to set the internal timer:

set_internal_time(ds.read_time())

If I understand what you want to acheive correctly and you were to remove the RTC module from the equation and save the current time to flash each second, your clock would be off by the amount of time it's been powered off.

from pico-solar-system.

HeatfanJohn avatar HeatfanJohn commented on May 27, 2024

If you have saved all of the files (main.py, planets.py, pluto.py) and then comment out the following lines in main.py:

    import ds3231

    ds = ds3231.ds3231()
    set_internal_time(ds.read_time())

main.py should run when you press -D in the Thonny shell to perform a soft reset and the board will execute main.py. You can then press -C to interrupt the running program and return back to the Thonny shell.

image

from pico-solar-system.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.