updated the spark exemple to be able to cope with places with high latency issues, fixed the pin number so it uses the internal led