User manual

mits presenting almost any colour. The LED should be connected to the PWM
outputs D3, D5, D6 of the controller with dropping resistors.
Connection of the RGB-LED to pins D3, D5 and D6
The program
The sketch again is about calling a website; this time, it is a page specifically pro-
grammed for this project that collects data from the weather page
http://www.openweathermap.com/
. On this page, you can get information on the weather in your town by varying the
URL. Just enter the city you want to query in the source text after City. As an ex-
ample, I am using my home town Essen: www.temp.fkainka.de/?city=Essen
The program now reads the temperature from this page and shows the result in
colour via the RGB-LED. At the same time, the value is output via the serial moni-
tor. The temperature range used in the example program for display on the LED is
20 °C to +40 °C.
Generally, the program works almost exactly like the previous one, but with some
small special features. The function getTemp() this time collects the data and re-
turns the current temperature, similar to the time function in the previous program.
void rgbTemp(int val)
{