Skip to content

Reloj con arduino, cuatro dip display 7 segmentos y multiplexación

Notifications You must be signed in to change notification settings

brunojhovany/arduino-clock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Arduino Clock

Configurando Ubuntu u otro Linux basado en debian

  • Habilitar el puerto para poder usarlo :$ sudo chmod 777 /dev/ttyACM0
Si deseas utilizar el minitor serial con python
  • Necesitaras instalar el modulo de python $ pip install pyserial
  • Si deseas modificar el archivo de python que establece la comununicación serial encontraras mas información aquí monitor.py
#Basic configuration
import serial
arduino = serial.Serial('/dev/ttyACM0', baudrate=9600, timeout=0.7) 
print("Welcome to arduino-serialpy")
while True:
    try:
        line = arduino.readline()
        print(line)
    except KeyboardInterrupt:
        print("Exiting")
        break

Libreria time para arduino

More information => TimeLib
now();             // returns the current time as seconds since Jan 1 1970
hourFormat12();    // the hour now in 12 hour format
isAM();            // returns true if time now is AM
isPM();            // returns true if time now is PM
hour();            // the hour now  (0-23)
minute();          // the minute now (0-59)
second();          // the second now (0-59)
day();             // the day now (1-31)
weekday();         // day of the week (1-7), Sunday is day 1
month();           // the month now (1-12)
year();            // the full four digit year: (2009, 2010 etc)

About

Reloj con arduino, cuatro dip display 7 segmentos y multiplexación

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages