Upload

Pressing the Button (Netduino Tutorial)

netduino netduino·3 videos
253
25,528
Like     Dislike 2

Sign in to YouTube

Sign in with your Google Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to like netduino's video.

Sign in to YouTube

Sign in with your Google Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to dislike netduino's video.

Sign in to YouTube

Sign in with your Google Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to add netduino's video to your playlist.

Uploaded on Aug 8, 2010

Now that we've learned how to control the LED, let's turn it on and off with the button.

This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.

Loading icon Loading...

Loading icon Loading...

Loading icon Loading...

The interactive transcript could not be loaded.

Loading icon Loading...

Loading icon Loading...

Ratings have been disabled for this video.
Rating is available when the video has been rented.
This feature is not available right now. Please try again later.

Top Comments

  • thisisbogart

    Hi Guys,

    Its worth mentioning that since the switch was initially meant to be a "Restart" switch, its default state is "on". In other words, the thing will read "true" unless you push it. This is why he netduino guy had to invert the bool for it to act like you would expect.

    I was scratching my head for a bit there too.

    · 8

    Sign in to YouTube

    Sign in with your YouTube Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to rate thisisbogart's comment.

    Sign in to YouTube

    Sign in with your YouTube Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to rate thisisbogart's comment.

All Comments (5)

Sign in now to post a comment!
  • netduino

    Hi, smjjasdaf. The ONBOARD_SW1 is physically tied high (3.3V), and is driven to ground (0V) when you press it. It might be simpler for users if we just flipped the logic via firmware, to make it read TRUE when pressed. That wouldn't be hard to do. Thoughts?

    ·

    Sign in to YouTube

    Sign in with your YouTube Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to rate netduino's comment.

    Sign in to YouTube

    Sign in with your YouTube Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to rate netduino's comment.
    in reply to smjjasdfa (Show the comment)
  • Loading comment...
Loading...
Loading...
Working...
Sign in to add this to Watch Later