Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| en:reference:matrix [2017/10/30 11:27] – created kniwwelino | en:reference:matrix [2018/01/23 13:06] (current) – kniwwelino | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Matrix ====== | ||
| + | |||
| + | ===== API ===== | ||
| + | |||
| + | ==== void MATRIXwrite(String text, int count, boolean wait) ==== | ||
| + | Write the given text to the matrix and scroll it for a number of times. | ||
| + | |||
| + | '' | ||
| + | count = number of times the text shall be scrolled before disappearing (-1 = forever)\\ | ||
| + | wait = if true, wait before text has been shown before returning.'' | ||
| + | |||
| + | |||
| + | ==== void MATRIXwrite(String text) ==== | ||
| + | Write the given text to the matrix and scroll it infinitely. | ||
| + | |||
| + | '' | ||
| + | |||
| + | |||
| + | ==== void MATRIXwriteAndWait(String text) ==== | ||
| + | Write the given text to the matrix and scroll it, wait before text has been shown before returning. | ||
| + | |||
| + | '' | ||
| + | |||
| + | |||
| + | ==== void MATRIXwriteOnce(String text) ==== | ||
| + | Write the given text to the matrix and scroll it once. | ||
| + | |||
| + | '' | ||
| + | |||
| + | |||
| + | ==== void MATRIXdrawIcon(String iconString) ==== | ||
| + | Draw the given icon on the matrix. | ||
| + | |||
| + | Icon is given as string and accepted in the following formats: | ||
| + | * " | ||
| + | * " | ||
| + | |||
| + | '' | ||
| + | |||
| + | | ||
| + | ==== void MATRIXdrawIcon(uint32_t iconLong) ==== | ||
| + | Draw the given icon on the matrix. | ||
| + | |||
| + | Icon is given as 32bit long. Bits correspond to the pixels starting at top left. | ||
| + | |||
| + | '' | ||
| + | |||
| + | |||
| + | ==== void MATRIXsetPixel(uint8_t x, uint8_t y, uint8_t on) ==== | ||
| + | Sets the given pixel of the matrix to be on or off | ||
| + | |||
| + | '' | ||
| + | y = pixel row\\ | ||
| + | on = true-> Pixel on, false-> | ||
| + | |||
| + | |||
| + | ==== void MATRIXsetBlinkRate(uint8_t b) ==== | ||
| + | Sets the blink rate of the matrix. | ||
| + | |||
| + | '' | ||
| + | |||
| + | |||
| + | ==== void MATRIXsetBrightness(uint8_t b) ==== | ||
| + | Sets the brightness of the matrix. | ||
| + | |||
| + | '' | ||
| + | |||
| + | |||
| + | ==== void MATRIXshowID() ==== | ||
| + | Show the internal device ID on the matrix as on/off digital pattern. | ||
| + | |||
| + | The first 5 digits of the ID on the 5 lines (first 4 cols), the last digits of the ID on the 5th column | ||
| + | |||
| + | ===== Wiring ===== | ||
| + | |||
| + | ===== Examples ===== | ||
| + | |||