kopia lustrzana https://github.com/peterhinch/micropython-samples
sun_moon.py: Reduce test output.
rodzic
e65b15fd6d
commit
6535469252
|
@ -296,16 +296,8 @@ class RiSet:
|
||||||
|
|
||||||
|
|
||||||
r = RiSet()
|
r = RiSet()
|
||||||
t = time.ticks_us()
|
|
||||||
r.set_day()
|
|
||||||
print("Elapsed us", time.ticks_diff(time.ticks_us(), t))
|
|
||||||
for d in range(7):
|
for d in range(7):
|
||||||
print(f"Day {d}")
|
print(f"Day {d}")
|
||||||
r.set_day(d)
|
r.set_day(d)
|
||||||
print(f"Sun rise {r.sunrise(3)} set {r.sunset(3)}")
|
print(f"Sun rise {r.sunrise(3)} set {r.sunset(3)}")
|
||||||
print(f"Moon rise {r.moonrise(3)} set {r.moonset(3)}")
|
print(f"Moon rise {r.moonrise(3)} set {r.moonset(3)}")
|
||||||
|
|
||||||
print(r.sunrise(1))
|
|
||||||
for d in range(30):
|
|
||||||
r.set_day(d)
|
|
||||||
print(round(r.moonphase() * 1000))
|
|
||||||
|
|
Ładowanie…
Reference in New Issue