| ??? 06/19/02 19:44 Read: times |
#24640 - RE: help using LCD module problem! |
#define CW_Add_L 0x08 // Left panel write command address #define CR_Add_L 0x0A // Left panel Read status address for busy flag #define DW_Add_L 0x09 // Left Panel write disp data address #define DR_Add_L 0x0B // Left Panel read disp data address Probably not related to your actual problem, but it's best to avoid C++ style comments on the end of #defines. It should be OK, but I have seen preprocessors which actually include the comment in the macro definition. Then, when the macro is expanded, you end up with an unterminated comment in the middle of your code! eg, this line P2 = CR_Add_L;after macro-expansion by such a preprocessor becomes: P2 = 0x0A // Left panel Read status address for busy flag ;and note that the semicolon is now "lost" in the comment. For safety, it's always best to use only /* */ comments - and make sure the /* and */ are on the same line! See http://www.8052.com/forum/read.phtml?id=24637&top= |
| Topic | Author | Date |
| help using LCD module problem! | 01/01/70 00:00 | |
| RE: help using LCD module problem! | 01/01/70 00:00 | |
| RE: help using LCD module problem! | 01/01/70 00:00 | |
| RE: help using LCD module problem! | 01/01/70 00:00 | |
RE: help using LCD module problem! | 01/01/70 00:00 |



