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/

Thursday, 2 February 2023

SF2.2 Display the Level

import machine import utime pin = [6,7,8,9,10,11,12,13] led= [] for i in range(8): led.append(None) led[i] = machine.Pin(pin[i], machine.Pin.OUT) while True: for i in range(8): led[i].toggle() utime.sleep(0.5) #SunFounder Kepler kit 2.2 Display the Level
Posted by MOK, Chai Pui at 23:59

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (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)
      • 3Playing music with Raspberry Pi Pico
      • 4Buttons to control RGB led using Raspberry Pi Pico
      • TTB01 Flashing LED
      • TTB01A How Fast Can You Blink the LED and Still Se...
      • TTB02 Understanding and Using Breadboards
      • TTB02A Make an LED send SOS
      • SF2.2 Display the Level
      • TRL - Exercise2c
    • ►  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)
Travel theme. Powered by Blogger.