I haven't tested this on other arduino boards, but it is most unlikely to work, say, on a Mega since the program edits directly some registers that have different meanings depending on the board ...