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@1:68d6c4c092fb, 2022-02-23 (annotated)
- Committer:
- itbusch
- Date:
- Wed Feb 23 18:52:50 2022 +0000
- Revision:
- 1:68d6c4c092fb
- Parent:
- 0:43e25c35d0c1
140_robot_H_Bridge8835_DIR_PWM_US_LCD
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
itbusch | 0:43e25c35d0c1 | 1 | //Verwendet SoftwareI2C von: |
itbusch | 0:43e25c35d0c1 | 2 | /* |
itbusch | 0:43e25c35d0c1 | 3 | * mbed Library to use a software master i2c interface on any GPIO pins |
itbusch | 0:43e25c35d0c1 | 4 | * Copyright (c) 2012 Christopher Pepper |
itbusch | 0:43e25c35d0c1 | 5 | * Released under the MIT License: http://mbed.org/license/mit |
itbusch | 0:43e25c35d0c1 | 6 | */ |
itbusch | 0:43e25c35d0c1 | 7 | //Anpassungen in SoftwareI2C.cpp: _frequency_delay = 3; |
itbusch | 0:43e25c35d0c1 | 8 | |
itbusch | 0:43e25c35d0c1 | 9 | #include "mbed.h" |
itbusch | 0:43e25c35d0c1 | 10 | #include "SoftwareI2C.h" |
itbusch | 0:43e25c35d0c1 | 11 | class lcd |
itbusch | 0:43e25c35d0c1 | 12 | { |
itbusch | 0:43e25c35d0c1 | 13 | private: |
itbusch | 0:43e25c35d0c1 | 14 | uint8_t Adresse;//=0x3F; |
itbusch | 0:43e25c35d0c1 | 15 | //DigitalOut *ok; |
itbusch | 0:43e25c35d0c1 | 16 | //DigitalOut *nok; |
itbusch | 0:43e25c35d0c1 | 17 | //PortOut *po; |
itbusch | 0:43e25c35d0c1 | 18 | //DigitalIn *t; |
itbusch | 0:43e25c35d0c1 | 19 | SoftwareI2C *i2c; |
itbusch | 0:43e25c35d0c1 | 20 | uint8_t wert; |
itbusch | 0:43e25c35d0c1 | 21 | public: |
itbusch | 0:43e25c35d0c1 | 22 | lcd(void); |
itbusch | 0:43e25c35d0c1 | 23 | void clear(void); |
itbusch | 0:43e25c35d0c1 | 24 | void sendeByte(char b,uint8_t rw, uint8_t rs ); |
itbusch | 0:43e25c35d0c1 | 25 | void sendeNippel(char b,uint8_t rw, uint8_t rs ); |
itbusch | 0:43e25c35d0c1 | 26 | void init(void); |
itbusch | 0:43e25c35d0c1 | 27 | void cursorpos(uint8_t pos); |
itbusch | 0:43e25c35d0c1 | 28 | void warte(void); |
itbusch | 0:43e25c35d0c1 | 29 | int printf(const char *format, ...); |
itbusch | 0:43e25c35d0c1 | 30 | |
itbusch | 0:43e25c35d0c1 | 31 | |
itbusch | 0:43e25c35d0c1 | 32 | }; |