| Electronics Forum |
Help
Search
Members
Calendar
|
| Welcome Guest ( Log In | Register ) | Resend Validation Email |
![]() ![]() ![]() |
| Mattyz |
Posted: April 05, 2012 01:13 pm
|
||||
![]() Newbie ![]() ![]() Group: Members+ Posts: 16 Member No.: 35,624 Joined: August 25, 2011 |
I've just wrote this code for my project (the 8x8 LED RGB Matrix) but this function seems not to work. I can't recognise the mistake...
The errors are: Invalid expression rgb_matrix_lib.h ; expected, but 'unsigned' found rgb_matrix_lib.h Invalid expression rgb_matrix_lib.h ; expected, but 'long' found rgb_matrix_lib.h Undeclared identifier 'i' in expression rgb_matrix_lib.h ')' expected, but ';' found rgb_matrix_lib.h Undeclared identifier 'i' in expression rgb_matrix_lib.h '}' expected ';' found rgb_matrix_lib.h ; expected, but '.' found rgb_matrix_lib.h 'PORTB' Identifier redefined rgb_matrix_lib.h Specifier needed rgb_matrix_lib.h Invalid declarator expected'(' or identifier rgb_matrix_lib.h Internal error '' rgb_matrix_lib.h PS: this code belongs to an header (.h) file, which is going to be implement on the main code:
Feel free to ask me if I've not been clear. Thanks again for your help This post has been edited by Mattyz on April 05, 2012 01:16 pm |
||||
| Gorgon |
Posted: April 06, 2012 12:43 pm
|
|
Forum Addict ++ ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Trusted Members Posts: 2,927 Member No.: 3,861 Joined: December 18, 2005 |
You are sure that the code in your header file, should not be in a .c file?
From the error messages you get I would think the precompiler does not like the taste of your .h file. Definitions, references and prototypes in .h files, and this and code in .c files. TOK -------------------- Light travels faster than sound. That's why some people appear bright until they speak!
|
| Mattyz |
Posted: April 11, 2012 06:19 pm
|
![]() Newbie ![]() ![]() Group: Members+ Posts: 16 Member No.: 35,624 Joined: August 25, 2011 |
I studied better the meaning of .c files, .h files and so on and finally I solved my problem! Thank you for the input,
Matt |
![]() |
![]() ![]() ![]() |
:: support us ::