Reader small image

You're reading from  Practical Python Programming for IoT

Product typeBook
Published inNov 2020
Reading LevelIntermediate
PublisherPackt
ISBN-139781838982461
Edition1st Edition
Languages
Right arrow

Configuring the Tree API service

The Tree API service configuration is found in the chapter14/tree_api_service/config.py file. There are many configuration options in this file, and they mostly relate to the configuration of the APA102 (discussed in Chapter 8, Lights, Indicators, and Displaying Information) and the servo (discussed in Chapter 10, Movement with Servos, Motors, and Steppers). You will find this file and the configuration options well commented.

The default configuration will be adequate for running an example locally on your Raspberry Pi; however, the one configuration parameter you should check is APA102_NUM_LEDS = 60. If your APA102 LED strip contains a different number of LEDs, please update this configuration appropriately.

Let's run the Tree API service program and create some light (and movement)!

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Practical Python Programming for IoT
Published in: Nov 2020Publisher: PacktISBN-13: 9781838982461