Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const byte TX_ANT = 9;
- void setup() {
- DDRB = _BV(DDB1); //Enable output.
- TCCR1A = _BV(COM1A0); //Enable compare match clock
- OCR1A = 79; //Divides Arduino 8MHz reference clock (Derived every other clock cycle).
- TCCR1B = _BV(WGM12) | _BV(CS10); //Enable CTC Prescaler Division
- pinMode(TX_ANT, OUTPUT);
- }
- void loop() {
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement