From 12a6024c4eb26390585ae891b4982073d3365601 Mon Sep 17 00:00:00 2001 From: "Adrian A. Baumann" Date: Sat, 14 Nov 2020 01:03:48 +0200 Subject: [PATCH] Changed LED into Class, allowing multiple LEDs per script --- LED.py | 125 ++++++++++++++++++++++----------------------------------- 1 file changed, 49 insertions(+), 76 deletions(-) diff --git a/LED.py b/LED.py index 788fc5f..779e731 100644 --- a/LED.py +++ b/LED.py @@ -1,76 +1,49 @@ -from machine import Pin -from time import sleep - -LEDPin=Pin(2,Pin.OUT) - -def Blink(number,timeon=0.2,timeoff=0.2): - n=0 - while n