LPC1768 programm for the led matrix.
Dependencies: BufferedSerial DS3231 mbed-rtos mbed
main.cpp@3:bd1352d4dbb8, 2018-01-17 (annotated)
- Committer:
- JOEV
- Date:
- Wed Jan 17 07:12:35 2018 +0000
- Revision:
- 3:bd1352d4dbb8
- Parent:
- 2:d5472e4a55bf
first release -> not everything has been commented yet but should work
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
JOEV | 2:d5472e4a55bf | 1 | #include "initalize.h" |
JOEV | 2:d5472e4a55bf | 2 | #include "mbed.h" |
JOEV | 0:41f9c251097c | 3 | #include <string> |
JOEV | 0:41f9c251097c | 4 | //------------------------------------------------------------------------------------------------------ |
JOEV | 2:d5472e4a55bf | 5 | // editable Variables/Text |
JOEV | 1:3a39b1439456 | 6 | //------------------------------------------------------------------------------------------------------ |
JOEV | 3:bd1352d4dbb8 | 7 | int m_length = 64; // length of the matrix |
JOEV | 3:bd1352d4dbb8 | 8 | int m_height = 8; // height of the matrix |
JOEV | 3:bd1352d4dbb8 | 9 | char matrix_value [512]; // How many Variables can be declared in the text-array |
JOEV | 3:bd1352d4dbb8 | 10 | |
JOEV | 3:bd1352d4dbb8 | 11 | |
JOEV | 0:41f9c251097c | 12 | //------------------------------------------------------------------------------------------------------ |
JOEV | 0:41f9c251097c | 13 | // Main |
JOEV | 0:41f9c251097c | 14 | //------------------------------------------------------------------------------------------------------ |
JOEV | 0:41f9c251097c | 15 | int main() |
JOEV | 0:41f9c251097c | 16 | { |
JOEV | 3:bd1352d4dbb8 | 17 | while(1) |
JOEV | 3:bd1352d4dbb8 | 18 | { |
JOEV | 3:bd1352d4dbb8 | 19 | Matrix(m_length,m_height,matrix_value); |
JOEV | 3:bd1352d4dbb8 | 20 | } |
JOEV | 3:bd1352d4dbb8 | 21 | |
JOEV | 0:41f9c251097c | 22 | } |
JOEV | 0:41f9c251097c | 23 |