Skip to content

Instantly share code, notes, and snippets.

@jonmoshier
Last active June 7, 2018 18:16
Show Gist options
  • Save jonmoshier/d556c34ba0c87f958f88faeaa7db5fc2 to your computer and use it in GitHub Desktop.
Save jonmoshier/d556c34ba0c87f958f88faeaa7db5fc2 to your computer and use it in GitHub Desktop.
Simple setup for teensy bytebeats. Example at https://www.youtube.com/watch?v=I6M_S562yKI
void setup() {
analogWriteResolution(8);
}
void loop() {
int t=0;
for(;;t++) {
analogWrite(A14,(t*3 &t>>9 &t*5 &t>>9 &t*7&t>>9 ));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment