Odinub India
Published

LED Blink Using Odinub GPIO

The first step towards automation using Odinub.

BeginnerProtip2 hours250
LED Blink Using Odinub GPIO

Things used in this project

Hardware components

Resistor 1k ohm
Resistor 1k ohm
×1
LED (generic)
LED (generic)
×1
Odinub
Odinub
×1

Story

Read more

Code

Blink.py

Python
"""
  Blinking LED using Odinub GPIO

  Turns an LED on for one second, then off for one second, repeatedly.

  If you want to know more GPIO on your Odinub at:
  http://community.odinub.com/Blog_Post_View.aspx?vid=122
  check the Technical Specs of your board   at:
  http://www.odinub.com/Product.aspx

  modified 13 June 2019
  by Bhavik Parikh
  nubio Library Created 11 June 2019
  by Bhavik Parikh

"""


import nubio
import time

nubio.pinMode(23,'o')
while True:
             nubio.digitalWrite(23,'h')
             time.sleep(1)
             nubio.digitalWrite(23,'l')
             time.sleep(1)

Credits

Odinub India

Odinub India

9 projects • 3 followers

Comments