'''
# DESCRIPTION OF PROGRAM
VERSION
'''
#-*- IMPORT LIBRARIES
from machine import Pin # Import the library Pin from the machine
from utime import sleep # Import the library sleed - used do due nothin during period of time
import utime # Import local time
sleep(0.01) # Wait for USB to connect #Sleep after energy connected
print("Hello, Pi Pico!") # Print in the serial port the text
#-*- CONSTANTS AND GUEST VALUES
#-*- PINS IN
#-*- PINS OUT
p5 = Pin (5, Pin.OUT) # The Port (GPIOD) 5 is assigned as a pin out
#-*- HEADER OF EXPORTED TABLE
print( "Count" + "\t" + "time UTC" + "\t" + "Value")
#-*- MAIN CODE
count = 1
while count < 20 : #Loop during n times
year, month, day, hour, minute, second, _, _ = utime.localtime()
current_date = f"{day:02d}/{month:02d}/{year}" #Variable data
current_time = f"{hour:02d}:{minute:02d}:{second:02d}" #Variable
p5.value(0) # Turn off the port
sleep(0.5) # Wait 0.5 seconds to the other line of program
p5.value(1) # Turn on the p5
sleep(0.5)
# Exported table
print( str(count) + "\t" + str(current_date) + " " + str(current_time) + "\t" + str(count))
count += 1 # Add +1 for count variable until the end oof loop