EngineersGarage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Advertise
You are here: Home / Replies / how many LEDS to want to

how many LEDS to want to

|

Microcontroller › AVR › how to make running led using atmega16 › how many LEDS to want to

February 14, 2011 at 5:26 am #5525
dagakshay
Participant

how many LEDS to want to interface…

 

algo for simple running 8 LEDs:

 

while(1)

{

PORTB=(1<<0);

_delay_ms(100); 

 

 

PORTB=(1<<1);

_delay_ms(100);

 

PORTB=(1<<2);

_delay_ms(100);

 

PORTB=(1<<3);

_delay_ms(100);

 

PORTB=(1<<4);

_delay_ms(100);

 

PORTB=(1<<5);

_delay_ms(100);

 

PORTB=(1<<6);

_delay_ms(100);

 

PORTB=(1<<7);

_delay_ms(100);

}

RSS feed: Recent Posts Recent Posts

  • How much does generator frequency stability matter for sensitive electrical equipment? October 7, 2026
  • Curiosity is difficult. October 6, 2026
  • Speed control on power tools... October 6, 2026
  • On off switch hack October 6, 2026
  • DBT alternative idea October 4, 2026

Stay Up To Date

Newsletter Signup
EngineersGarage

Copyright © 2026 Arrowfly LLC. All Rights Reserved. The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of Arrowfly
Privacy Policy | Advertising

Search Engineers Garage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Advertise