I2C-LC-Diaplsay mit PCF8574

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

LCD.h

Committer:
itbusch
Date:
2020-11-29
Revision:
0:43e25c35d0c1

File content as of revision 0:43e25c35d0c1:

//Verwendet SoftwareI2C von:
/* 
 * mbed Library to use a software master i2c interface on any GPIO pins
 * Copyright (c) 2012 Christopher Pepper
 * Released under the MIT License: http://mbed.org/license/mit
 */
//Anpassungen in SoftwareI2C.cpp: _frequency_delay = 3;

#include "mbed.h"
#include "SoftwareI2C.h"    
class lcd
{   
    private:
    uint8_t Adresse;//=0x3F;
    //DigitalOut *ok;
    //DigitalOut *nok;
    //PortOut *po;
    //DigitalIn *t;
    SoftwareI2C *i2c;
    uint8_t wert;
    public:
    lcd(void);
    void clear(void);
    void sendeByte(char b,uint8_t rw, uint8_t rs );
    void sendeNippel(char b,uint8_t rw, uint8_t rs );
    void init(void);
    void cursorpos(uint8_t pos);
    void warte(void);
    int printf(const char *format, ...);


};