Kurs im Selbststudium

Web Technologies

Angeboten von Prof. Dr. Christoph Meinel

LED Matrix 1 - Red Line

Anweisungen:


In this exercise you have the possibility to control an LED-Matrix with JavaScript. This is realized by arrays. For the realization you have to create an two dimensional array, which represents the LED-Matrix. The representation is illustrated in the following graphic. The first array part is symbolizing the x-value and the second the y-value.
Possible integer values for the positions in the Matrix are:

0 - off,
1 - green,
2 - red,
3 - orange

LED Matrix Table

LED Matrix HPI

This Array will be sent with the function tcpclient.sentLEDMatrix(array) to the embedded system with the LED-Matrix.
In fact of a successful transferred „MATRIX OK“ and the captures image of the matrix is the result of the function call.

Task:

  1. Initialize the array „ledMatrix“ as two dimensional array, that you can save the information for the 16x16 matrix.
  2. Fill the array, that a constant red line run from the left top to the right bottom, like it is shown in the picture.

LED Matrix Red Line


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