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 ...

Get Internet of Things with Python now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.