Hey everybody,
I have used this code to generate a 8MHz signal from D6 Pin:
#include <TimerHelpers.h>
// Timer 0
// output OC0A pin 12 (D6)
const byte timer0OutputA = 6;
void setup() {
pinMode (timer0OutputA, OUTPUT);
TIMSK0 = 0; // no interrupts
Timer0::setMode (2, Timer0::PRESCALE_1, Timer0::TOGGLE_A_ON_COMPARE);
OCR0A = 0; // count to 2
} // end of setup
void loop() {}
This code works well,
but now I wanna add commands in LOOP function, so that I will get
a simple digital signal (DigitalWrite HIGH/LOW & delays) that will Blink a LED connected to
(D10) port.
When I'm adding these commands, the LED is turning on constantly and it's not blinking.
I will appreciate any help to resolve this and make it works!
Thank you in advance!