TextLCD
Dependents: Tarea1_con_incremental
Fork of TextLCD by
Revision 1:d7956bcc25ff, committed 2013-10-20
- Comitter:
- lcorralesc1
- Date:
- Sun Oct 20 07:08:20 2013 +0000
- Parent:
- 0:de90b67b2bca
- Commit message:
- El comando lcd.write(C1) se hizo public para poder usarlo en el codigo trabajado
Changed in this revision
TextLCD.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/TextLCD.h Thu Oct 11 20:16:06 2012 +0000 +++ b/TextLCD.h Sun Oct 20 07:08:20 2013 +0000 @@ -1,5 +1,5 @@ /* mbed TextLCD Library, for a 4-bit LCD based on HD44780 - * Copyright (c) 2007-2010, sford + * Copyright (c) 2007-2010, sford, http://mbed.org * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal @@ -33,7 +33,7 @@ * #include "mbed.h" * #include "TextLCD.h" * - * TextLCD lcd(p10, p12, p15, p16, p29, p30); // rs, e, d0-d3 + * TextLCD lcd(p10, p12, p15, p16, p29, p30); // rs, e, d4-d7 * * int main() { * lcd.printf("Hello World!\n"); @@ -42,7 +42,7 @@ */ class TextLCD : public Stream { public: - +void writeCommand(int command); //quedo publica ya la podemos usar en el codigo C /** LCD panel format */ enum LCDType { LCD16x2 /**< 16x2 LCD panel (default) */ @@ -55,10 +55,10 @@ * * @param rs Instruction/data control line * @param e Enable line (clock) - * @param d0-d3 Data lines + * @param d4-d7 Data lines for using as a 4-bit interface * @param type Sets the panel size/addressing mode (default = LCD16x2) */ - TextLCD(PinName rs, PinName e, PinName d0, PinName d1, PinName d2, PinName d3, LCDType type = LCD16x2); + TextLCD(PinName rs, PinName e, PinName d4, PinName d5, PinName d6, PinName d7, LCDType type = LCD16x2); #if DOXYGEN_ONLY /** Write a character to the LCD @@ -87,7 +87,8 @@ int rows(); int columns(); - + + protected: // Stream implementation functions @@ -97,7 +98,7 @@ int address(int column, int row); void character(int column, int row, int c); void writeByte(int value); - void writeCommand(int command); + //void writeCommand(int command); esta se documenta para poder poner comandos quedo publica void writeData(int data); DigitalOut _rs, _e; @@ -108,4 +109,4 @@ int _row; }; -#endif +#endif \ No newline at end of file