Oh sorry, i just pasted the example code, of course i changed this to Pin10. I also tried Pin4, which did not work either.