Lehrer Busch / LCD_i2C_JDS

Dependents:   120_robot_H_Bridge8835_UserButton_DIR_PWM_I2C_LCD 140_robot_H_Bridge8835_DIR_PWM_US_LCD xxx_Uhr_I2C_LCD_Delay_Bua xxx_Uhr_I2C_LCD_Delay_BuaV ... more

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers LCD.h Source File

LCD.h

00001 //Verwendet SoftwareI2C von:
00002 /* 
00003  * mbed Library to use a software master i2c interface on any GPIO pins
00004  * Copyright (c) 2012 Christopher Pepper
00005  * Released under the MIT License: http://mbed.org/license/mit
00006  */
00007 //Anpassungen in SoftwareI2C.cpp: _frequency_delay = 3;
00008 
00009 #include "mbed.h"
00010 #include "SoftwareI2C.h"    
00011 class lcd
00012 {   
00013     private:
00014     uint8_t Adresse;//=0x3F;
00015     //DigitalOut *ok;
00016     //DigitalOut *nok;
00017     //PortOut *po;
00018     //DigitalIn *t;
00019     SoftwareI2C *i2c;
00020     uint8_t wert;
00021     public:
00022     lcd(void);
00023     void clear(void);
00024     void sendeByte(char b,uint8_t rw, uint8_t rs );
00025     void sendeNippel(char b,uint8_t rw, uint8_t rs );
00026     void init(void);
00027     void cursorpos(uint8_t pos);
00028     void warte(void);
00029     int printf(const char *format, ...);
00030 
00031 
00032 };