I've just added the souce code of my sketch to the first post of this thread. feel free to use and improve it. Mario.