Search icon CANCEL
Subscription
0
Cart icon
Cart
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Intel Edison Projects

You're reading from  Intel Edison Projects

Product type Book
Published in May 2017
Publisher Packt
ISBN-13 9781787288409
Pages 264 pages
Edition 1st Edition
Languages
Concepts
Author (1):
Avirup Basu Avirup Basu
Profile icon Avirup Basu
Toc

Table of Contents (7) Chapters close

Preface 1. Setting up Intel Edison 2. Weather Station (IoT) 3. Intel Edison and IoT (Home Automation) 4. Intel Edison and Security System 5. Autonomous Robotics with Intel Edison 6. Manual Robotics with Intel Edison

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 chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime