i am trying to make program of 8 blinking using port manipulation technique. I have used port B pin (6-13). I am getting an error quoted " DDRB was not declared in this scope". I have attached the image. If any one can help me out with it, it would be great help
void setup() {
 // put your setup code here, to run once:
DDRB = DDRB| B111111;
}
void loop() {
 // put your main code here, to run repeatedly:
PORTB = B111111;// turn the LED on (HIGH is the voltage level)Â
 delay(1000); // wait for a second
PORTB = B000000;Â Â // turn the LED off by making the voltage LOW
delay(1000);Â Â Â Â Â Â Â // wait for a second
}
It is very important for led's to blink at the exact time as expected
What is it that reacts to the blinking of the LEDs ?
Why not just use one output, digitalWrite() and 8 transistors to turn on the LEDs or output a byte with a value of 255 to a shift register and do it that way ?