My Journal

This blog is a record of what I do, what I think and what I read. If you are interested to know about my professional experience, you can refer to the other blog of mine. http://admi2camac.blogspot.com/

Tuesday, 21 February 2023

Stop watch using TM1637

from machine import Pin import time import tm1637 tm = tm1637.TM1637(clk=Pin(4), dio=Pin(5)) Button = Pin(2, Pin.IN) a = 0 b = 0 tm.show(' ') tm.numbers(a,b) while True: if Button.value() == 1: while True: tm.numbers(a,b) b = b+1 time.sleep(1) if b > 59: b = 0 a = a+1 time.sleep(1) #Stop watch using Raspberry Pi Pico #https://electricdiylab.com/stopwatch-using-raspberry-pi-pico/#Schematic_Diagram
Posted by MOK, Chai Pui at 23:52 No comments:
Newer Posts Older Posts Home
Subscribe to: Posts (Atom)

Blog Archive

  • ►  2008 (3)
    • ►  02/03 - 02/10 (1)
    • ►  05/04 - 05/11 (2)
  • ►  2009 (5)
    • ►  06/14 - 06/21 (1)
    • ►  07/12 - 07/19 (2)
    • ►  07/19 - 07/26 (1)
    • ►  12/06 - 12/13 (1)
  • ►  2010 (4)
    • ►  02/21 - 02/28 (1)
    • ►  10/10 - 10/17 (1)
    • ►  10/24 - 10/31 (2)
  • ►  2011 (1)
    • ►  04/17 - 04/24 (1)
  • ►  2012 (1)
    • ►  02/19 - 02/26 (1)
  • ►  2013 (2)
    • ►  05/12 - 05/19 (1)
    • ►  05/19 - 05/26 (1)
  • ►  2023 (31)
    • ►  01/22 - 01/29 (4)
    • ►  01/29 - 02/05 (8)
    • ►  02/05 - 02/12 (4)
    • ►  02/19 - 02/26 (4)
    • ►  02/26 - 03/05 (4)
    • ►  03/05 - 03/12 (2)
    • ►  04/16 - 04/23 (1)
    • ►  04/23 - 04/30 (2)
    • ►  05/28 - 06/04 (2)
  • ▼  2026 (4)
    • ▼  03/29 - 04/05 (4)
      • Secret credentials
      • Weather station using ThingSpeak abd SSD1306
      • Weather Station ThingSpeak
      • Clock and temp using TM1637
Travel theme. Powered by Blogger.