Kurs im Selbststudium

Web Technologies

Angeboten von Prof. Dr. Christoph Meinel

LED Matrix 3 - Light

Anweisungen:


In this exercise you have the possibility to control an LED Matrix with JavaScript. This is realized by a given light sensor value and 4 light condition graphics. For the realization you have to evaluate the light sensor value given by the ADC (Analoge Digital Converter) of the embedded system. The light sensor value is available in the variable light in the following format ("LIGHT value", e.g. "LIGHT 2027"). This value is between 0 and 4095 and you should find out how to remove additional useless data. You have to decide for the right graphic for this sensor value. The following 4 graphics should be shown at the corresponding light sensor values.

0 - 300 - night,
301 - 1000 - very cloudy,
1001 - 3500 - cloudy,
3501 - 4095 - sunny

You should use the following functions to show the right picture for the measured light sensor value:

weathericons.getNight(),
weathericons.getVeryCloudy(),
weathericons.getCloudy(),
weathericons.getSunny()

Task:

Show the right image for any light sensor value you receive. An example could look like this.

LED Matrix Cloud


  • Mit dieser Aufgabe können Bonuspunkte verdient werden.
  • 1.0 Punkte
  • Abgabe bis Juli 17, 2015 um 20:00 Uhr (UTC)