I have a Python script controlling a Fibonacci clock that works great on the Raspberry Pi 4B, however, when I transfer the code to a PyBoard using MicroPython (which I'm completely new to) it doesn't work. Below is the part I believe to be the error. ...
import datetime
import time
import sys
from time import sleep
while 1:
t = datetime.datetime.now()
hr = t.hour
mn = t.minute
if (hr==00) or (hr==12):
hr = 12
bulb1Red()
else:
bulb1White()
mn5 = mn%5
if (mn5 == 0):
mn = mn/5
else:
mn = mn-mn5
mn = mn/5
if(hr > 12):
hr = hr-12