LPC1768 programm for the led matrix.
Dependencies: BufferedSerial DS3231 mbed-rtos mbed
main.cpp@2:d5472e4a55bf, 2016-10-12 (annotated)
- Committer:
- JOEV
- Date:
- Wed Oct 12 13:22:19 2016 +0000
- Revision:
- 2:d5472e4a55bf
- Parent:
- 1:3a39b1439456
- Child:
- 3:bd1352d4dbb8
Working code for a 8x8-Matrix; ; _______________Next Steps_______________; > Make code compatible with other resolutions; > Bluetooth function
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 | 2:d5472e4a55bf | 7 | string text_generic ("Hello World"); // is going to be used for the 'not-connected' state. |
JOEV | 2:d5472e4a55bf | 8 | int m_length = 16; // length of the matrix |
JOEV | 2:d5472e4a55bf | 9 | int m_height = 8; // height of the matrix |
JOEV | 2:d5472e4a55bf | 10 | int matrix_text [500]; // How many Variables can be declared in the text-array |
JOEV | 0:41f9c251097c | 11 | //------------------------------------------------------------------------------------------------------ |
JOEV | 0:41f9c251097c | 12 | // Main |
JOEV | 0:41f9c251097c | 13 | //------------------------------------------------------------------------------------------------------ |
JOEV | 0:41f9c251097c | 14 | int main() |
JOEV | 0:41f9c251097c | 15 | { |
JOEV | 2:d5472e4a55bf | 16 | Matrix(m_length,m_height,matrix_text,text_generic); |
JOEV | 0:41f9c251097c | 17 | } |
JOEV | 0:41f9c251097c | 18 |