O'Reilly logo

Getting Started with the Internet of Things by Cuno Pfister

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 2. Writing to Actuators

You can now write your first truly embedded program. In a time-honored tradition, this program, BlinkingLed, which is the embedded equivalent of HelloWorld, makes an LED blink.

In Figure 2-1, the large box indicates a Netduino Plus, which has a blue LED—labeled LED on the board—that can be controlled from an application program. This LED is connected to a general-purpose input/output (GPIO) pin of the microcontroller. Most microcontrollers have a number of such GPIO pins, each of which can be configured as digital input or digital output. A digital output might be connected to an LED, as in our example; a digital input might be connected to a switch or button.

Figure 2-1. Architecture of BlinkingLed

BlinkingLed

The ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required