Setup Timer1


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!

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