La libreria TextLCD se modifico en las lineas 45 y 101, se tomó de las compilaciones realizadas por Tony63.
Dependents: PrimeraTarea3ed 1raTareaconIncremental1ed tarea2_ed2 BackupPIDSimple ... more
Fork of TextLCD by
Diff: TextLCD.h
- Revision:
- 10:104ddbfc7132
- Parent:
- 9:31946c9940c3
--- a/TextLCD.h Fri Oct 11 05:36:35 2013 +0000 +++ b/TextLCD.h Mon Oct 21 23:29:11 2013 +0000 @@ -1,5 +1,5 @@ /* mbed TextLCD Library, for a 4-bit LCD based on HD44780 - * Copyright (c) 2007-2010, sford, http://mbed.org + * Copyright (c) 2007-2010, sford * * 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, d4-d7 + * TextLCD lcd(p10, p12, p15, p16, p29, p30); // rs, e, d0-d3 * * 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 +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 d4-d7 Data lines for using as a 4-bit interface + * @param d0-d3 Data lines * @param type Sets the panel size/addressing mode (default = LCD16x2) */ - TextLCD(PinName rs, PinName e, PinName d4, PinName d5, PinName d6, PinName d7, LCDType type = LCD16x2); + TextLCD(PinName rs, PinName e, PinName d0, PinName d1, PinName d2, PinName d3, LCDType type = LCD16x2); #if DOXYGEN_ONLY /** Write a character to the LCD @@ -87,8 +87,7 @@ int rows(); int columns(); - - + protected: // Stream implementation functions @@ -98,7 +97,7 @@ int address(int column, int row); void character(int column, int row, int c); void writeByte(int value); - void writeCommand(int command); esta se documenta para poder poner comandos quedo publica + //void writeCommand(int command); void writeData(int data); DigitalOut _rs, _e;