From 640b29c0462cff063d73ddbe06b89ce821446a19 Mon Sep 17 00:00:00 2001 From: helgibbons <50950368+helgibbons@users.noreply.github.com> Date: Tue, 22 Mar 2022 09:17:16 +0000 Subject: [PATCH] lint RTC example --- micropython/examples/breakout_rtc/set-time.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/micropython/examples/breakout_rtc/set-time.py b/micropython/examples/breakout_rtc/set-time.py index a6aac71d..0caf8f4a 100644 --- a/micropython/examples/breakout_rtc/set-time.py +++ b/micropython/examples/breakout_rtc/set-time.py @@ -3,7 +3,6 @@ from pimoroni_i2c import PimoroniI2C from breakout_rtc import BreakoutRTC -import time import machine PINS_BREAKOUT_GARDEN = {"sda": 4, "scl": 5} # i2c pins 4, 5 for Breakout Garden @@ -19,7 +18,7 @@ rtcbreakout.setup() print(f"Getting time from Pico RTC/Thonny: {rtcpico.datetime()}") year, month, day, weekday, hour, minute, second, microsecond = rtcpico.datetime() -print(f"Setting the breakout RTC!") +print("Setting the breakout RTC!") rtcbreakout.set_time(second, minute, hour, weekday, day, month, year) -print(f"New breakout time: {rtcbreakout.string_date()} {rtcbreakout.string_time()}") \ No newline at end of file +print(f"New breakout time: {rtcbreakout.string_date()} {rtcbreakout.string_time()}")