Accessing Open Source Code
Now try finding some open source code and modifying it to work on your board.
Google “Arduino switch tutorial” to find the link below:

Cut and paste the switch code into Arduino and match the pin location on the code to your switch and LED location on your board. Upload the code and test it out. Try it with a push button switch and then a slide switch. Does it work how you expected it to?

