Reader small image

You're reading from  Intel Edison Projects

Product typeBook
Published inMay 2017
PublisherPackt
ISBN-139781787288409
Edition1st Edition
Concepts
Right arrow
Author (1)
Avirup Basu
Avirup Basu
author image
Avirup Basu

http://www.avirupbasu.com/p/resume_9.html
Read more about Avirup Basu

Right arrow

WPF application for LED on and off

In Chapter 3, Intel Edison and IoT (Home Automation), we looked at using a WPF application and MQTT connection, learning that we could control our Intel Edison using MQTT protocol. However, here, we'll be dealing with serial port communication. Since we have already discussed WPF applications and how to create projects, and created an hello world application, we won't discuss the basics in this chapter, and will instead get into the application directly. Our problem statement in this chapter is to switch an LED on and off using a WPF application via serial port communication.

Start with creating a new WPF project and name it RobotController:

RobotController—1

Next, in MainWindow.xaml, we'll design the UI. We'll use the following controls:

  • Buttons
  • TextBox
  • TextBlocks

Design your UI as follows:

RobotController—2

The xaml code for the preceding...

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Intel Edison Projects
Published in: May 2017Publisher: PacktISBN-13: 9781787288409

Author (1)

author image
Avirup Basu

http://www.avirupbasu.com/p/resume_9.html
Read more about Avirup Basu