1. 14 6月, 2021 1 次提交
  2. 13 6月, 2021 3 次提交
  3. 12 6月, 2021 4 次提交
    • R
      mimxrt/machine_rtc: Maintain microsecond offset. · 3ab8806c
      robert-hh 提交于
      The supplied value for microseconds in datetime() will be treated as a
      starting value for the reported microseconds.  Due to internal processing
      in setting the time, there is an offset about 1 ms.
      3ab8806c
    • R
      mimxrt/machine_rtc: Change RTC.datetime() tuple to match other ports. · fd4eec55
      robert-hh 提交于
      This change moves the datetime tuple format back to the one used by all the
      other ports:
      
          (year, month, day, weekday, hour, minute, second, microsecond)
      
      Weekday is a number between 0 and 6, with 0 assigned to Monday.  It has to
      be provided when setting the RTC with datetime(), but will be ignored on
      entry and calculated when needed.
      
      The weekday() method was removed, since that is now again a part of the
      datetime tuple.
      
      The now() method was updated so it continues to return a tuple that matches
      CPython's datetime module.
      fd4eec55
    • K
      rp2/machine_rtc: Add initial support for RTC. · 37d01d4b
      Krzysztof Adamski 提交于
      Initial support for machine.RTC on rp2 port. It only supports datetime()
      method and nothing else. The method gets/returns a tuple of 8 items, just
      like esp32 port, for example, but the usec parameter is ignored as the RP2
      RTC only works up to seconds precision.
      
      The Pico RTC isn't very useful as the time is lost during reset and there
      seems to be no way to easily power up just the RTC clock with a low current
      voltage, but still there seems to be use-cases for that, see issues #6831,
      and a Thonny issue #1592. It was also requested for inclusion on v1.15
      roadmap on #6832.
      Signed-off-by: NKrzysztof Adamski <k@japko.eu>
      37d01d4b
    • P
      docs/library/machine.RTC.rst: Document datetime method and fix ex code. · c0499bc2
      Peter Hinch 提交于
      This is the minimum change to fix the example code so it actually runs on
      the majority of ports.
      c0499bc2
  4. 11 6月, 2021 3 次提交
  5. 10 6月, 2021 3 次提交
  6. 08 6月, 2021 3 次提交
  7. 06 6月, 2021 8 次提交
  8. 05 6月, 2021 4 次提交
  9. 03 6月, 2021 9 次提交
  10. 01 6月, 2021 2 次提交