A little arduino sketch based on the midi.h library that lets you use a Arduino-digitla Pin to create a square wave tone which is controlled over midi. It also uses the pitchbend command.