WardCunningham/Txtzyme — pull request #7 by drf5n (2014-12-14 03:32:01+00:00)
Title: Arduinozyme.ino: Fixes pinMode for digital output, Adds analog/PWM output as 'O', tone() as 

This fix makes several changes to the Arduinozyme sketch. The Arduinozyme sketch is useful for Teensy3.0 and Teensy3.1.

The code didn't set the pinMode from INPUT, so the 'o' command fails. Setting the pinMode() before digitalWrite(pin,x%2) solves this.

Teensy boards are capable of Analog/PWM output. See https://www.pjrc.com/teensy/td_pulse.html for details.

Analog output is added with a 'O' command.

Teensyduino's 'tone(pin,frequency)' command was added as '[pin]d[freq]t' noTone(pin) is 'T'. I'm afraid I haven't tested it.

Teensy3.0 and Teensy 3.1 have analogWriteFrequency(pin,frequency) and analogWriteResolution(bits 2-16) extensions that are implemented as command 'F' and 'R'. This is pretty cool.