Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: lcd1100.h
- Revision:
- 0:63329911c8c0
- Child:
- 1:6b0d8c274965
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lcd1100.h Sat Jul 21 04:02:41 2012 +0000
@@ -0,0 +1,56 @@
+//////////////////////////////////////////////////////
+/*
+esta libreria fue adaptada por Carlos Gomez y Hector V
+argas para uso enel proyecto de fin de carrera en
+ingenieria electronica
+en la Universidad de los Llanos - Villavicencio - Colombia
+*/
+//////////////////////////////////////////////////////
+/// lcd1100.c
+///
+/// Badr Ghatasheh (demonspells)
+/// 11/3/2011
+//////////////////////
+#ifndef LCD1100_H
+#define LCD1100_H
+#include "mbed.h"
+
+#define CMD 0
+#define DATA 1
+class lcd1100 {
+public:
+ lcd1100(PinName _sclk,PinName _sda,PinName _cs,PinName _rst);
+ //Inicializa la LCD
+ void Lcd_Init(void);
+ //Limpia la LCD
+ void Lcd_Clear(void);
+ void SetX(char x);
+ void SetY(char y);
+ //sed the position of cursor X(0 to 96) and Y(0 to 7)each position in "Y" is 8*y pixels
+ //pone el cursor en la posicion X,Y*8
+ //los valores aceptables para Y son de 0 a 96 y para Y de 0 a 9
+ void Gotoxy(char x,char y);
+ //dibuja una linea vertical
+ void VLine(char x,char y,char on);
+ //dibuja una linea Horizontal
+ void Line(unsigned char x,unsigned char y,unsigned char y2,unsigned char on);
+ //imprime un caracter
+ void print_char(char c);
+ //imprime un String
+ void printf_lcd(char *s);
+ //imprime una imagen
+ void cargar_imagen(char *dir);
+ char bitaddr;
+private:
+ DigitalOut sclk;
+ DigitalOut sda;
+ DigitalOut cs;
+ DigitalOut rst;
+ // lookup table, here you can modify the font
+ static const char FontLookup1[48][5];
+ static const char FontLookup2[48][5];
+ //envia datos los datos a la LCD1100
+ void Lcd_Write(bool cd,unsigned char c);
+};
+
+#endif
\ No newline at end of file