Go Down

Topic: Setup Timer1 (Read 320 times) previous topic - next topic

thalesfsp

Jul 04, 2019, 10:00 pm Last Edit: Jul 05, 2019, 02:19 am by thalesfsp
Hi!

I have this piece of code, that was written for the Arduino MEGA. I need help converting that for MKR1010 WiFi. I'm new to the platform, I tried, but I'm struggling to have it working.

Thank you for your time, and help!

Code: [Select]
// Set up Timer1
TCCR1A = bit (COM1A0); //toggle OC1A on Compare Match
TCCR1B = bit (WGM12) | bit (CS10); //CTC, no prescaling
OCR1A = 0; //output every cycle

Go Up