![]() |
|
|||||||
| Решение бытовых проблем Не вся жизнь в машине. Иногда что-то и дома сделать нужно. |
|
|
Опции темы | Поиск в этой теме | Опции просмотра |
|
|
#11 | |
|
Адрес: Львів
Возраст: 52
Сообщений: 8,692
Длина: 17480мкм
Диаметр: 37мм
|
Цитата:
Из LedControl.h: void setRow(int addr, int row, byte value); /* * Set all 8 Led's in a column to a new state * Params: * addr address of the display 0,1 ... numDevices * col column which is to be set (0..7) * value each bit set to 1 will light up the * corresponding Led. */ void setColumn(int addr, int col, byte value); Инициализация: for (int x=0; x<numDevices; x++) { lc.shutdown(x,false); //The MAX72XX is in power-saving mode on startup lc.setIntensity(x,brightness); // Set the brightness to default value lc.clearDisplay(x); // and clear the display }
__________________
Freelancer Chronicles my diy-diary Последний раз редактировалось softm; 04.11.2015 в 18:14. |
|
|
|
|