With Instructables you can share what you make with the world, and tap into an ever-growing community of creative experts.
Tell us about yourself!
Thanks Simon. Worked on the first try. I've added the sketch to my personal library of stuff that works that I piece together sketches from.
Also thought I'd have to use an RC circuit, but i don't as the switch I have (looks identical to yours from AliExpress) works perfectly with the code you have written
Join 2 million + to receive instant DIY inspiration in your inbox.
© 2016 Autodesk, Inc.