Fun with Raspberry Pi and 7 segment Display

Поделиться
HTML-код
  • Опубликовано: 16 дек 2024

Комментарии • 19

  • @mahikrishna8378
    @mahikrishna8378 3 года назад

    so much usefull in 2021 lockdown days

  • @maxgroen2467
    @maxgroen2467 7 лет назад +2

    THNX VERRY MUCH NEVER FOUND SOMETHING LIKE THIS, nice

  • @2aeolus
    @2aeolus 5 лет назад

    You guys are awesome! Great Vid. Thanks.

  • @hal7mar
    @hal7mar 8 лет назад +1

    Thanks for the tutorial!

    • @erikashby1616
      @erikashby1616  8 лет назад

      Thanks for the comment, please feel free to share.

  • @infantblack9837
    @infantblack9837 8 лет назад

    how did u get output as number 3?

  • @BrandonAndrewFilms
    @BrandonAndrewFilms 9 лет назад +2

    I want a raspberry pi for christmas

  • @ElliotLaFave
    @ElliotLaFave 8 лет назад +1

    great tutorial thanks!

  • @erikashby1616
    @erikashby1616  9 лет назад

    Here is the sample code
    ----------
    ######### SAMPLE CODE FOR 7 SEGMENT DISPLAY ###########
    ### Setup the Raspberry Pi GPIO for USE
    # First import the GPIO module
    import RPi.GPIO as GPIO
    # Now set up GPIO using BCM numbering
    GPIO.setmode(GPIO.BCM)
    ### Assign the 7 segment variables that will map to each GPIO port
    # Note: Use the numbers based on how you wired up the Pi
    a=19
    b=26
    c=20
    d=16
    e=12
    f=13
    g=6
    dot=21
    ### Declare each GPIO port that will be used as an OUTPUT port
    GPIO.setup(a,GPIO.OUT)
    GPIO.setup(b,GPIO.OUT)
    GPIO.setup(c,GPIO.OUT)
    GPIO.setup(d,GPIO.OUT)
    GPIO.setup(e,GPIO.OUT)
    GPIO.setup(f,GPIO.OUT)
    GPIO.setup(g,GPIO.OUT)
    GPIO.setup(dot,GPIO.OUT)
    ### Turn on specific segments to make a number
    #Number 1 = b,c ON and everything else OFF
    GPIO.output(a,0)
    GPIO.output(b,1)
    GPIO.output(c,1)
    GPIO.output(d,0)
    GPIO.output(e,0)
    GPIO.output(f,0)
    GPIO.output(g,0)
    GPIO.output(dot,1)

  • @1969jflo
    @1969jflo 6 лет назад

    Awesome video.

  • @philbateman1989
    @philbateman1989 8 лет назад

    Mine's not lighting up at all :( Any ideas why?

  • @infantblack9837
    @infantblack9837 8 лет назад

    what did type following the code sudo python number ......................then what?

  • @Benjamin-rg2kc
    @Benjamin-rg2kc 4 года назад

    Gracias ! :)

  • @muhdfizee7610
    @muhdfizee7610 6 лет назад

    where the code?

  • @sopanitkliengkerd595
    @sopanitkliengkerd595 6 лет назад

    เย้ๆ