This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
This sketch listens to incoming midi clock messages on port RX and pulses output tempo_pin each quarter note, | |
i.e. every 24th clock tick | |
Written for Attiny85 but can be modified for other Atmega, Attiny MCU's | |
IMPORTANT! Don't use pins RX, TX for anything else other than the SoftwareSerial library | |
more details, schematics, etc.. here: http://ambinaut.wordpress.com/2014/07/14/digitech-jamman-stereo-midi-sync/ | |
*/ | |
#define F_CPU 8000000UL //Define the speed the clock is running at. Used for the delay.h functions |