O'Reilly logo

Internet of Things with Python by Gastón C. Hillar

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 4. Working with a RESTful API and Pulse Width Modulation

In this chapter, we will interact with the board with HTTP requests and we will use pulse width modulation to generate different output voltages. We shall:

  • Work with the Tornado web server to build a RESTful API in Python
  • Compose and send HTTP requests to print numbers in LEDs
  • Work with pulse width modulation to control the output voltage in pins
  • Fade in and fade out LEDs connected to the board
  • Use different tools to compose and send HTTP requests that interact with the board
  • Build a RESTful API to mix red, green and blue and generate millions of colors with an RGB LED
  • Use the mraa and wiring-x86 libraries to control pulse width modulation

Printing numbers in LEDs with a RESTful API

Tornado ...

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