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.
Dependents: PCF8576_GH08172_test
PCF8576 Class Reference
PCF8576 Universal LCD driver library example. More...
#include <PCF8576.h>
Public Member Functions | |
| PCF8576 (PinName sda, PinName scl, int addr=PCF8576_DEFAULT_SLAVE_ADDRESS) | |
| PCF8576 constructor. | |
| PCF8576 (I2C &i2c_obj, int addr=PCF8576_DEFAULT_SLAVE_ADDRESS) | |
| Create a PCF8576 instance which is connected to specified I2C pins with specified address. | |
| ~PCF8576 () | |
| PCF8576 destructor. | |
| void | initialize (void) |
| Initializa PCF8576 device. | |
| void | print (char *str) |
| Print string. | |
| void | icon (uint32_t icon) |
| Print level-bar pictogram icon. | |
Detailed Description
PCF8576 Universal LCD driver library example.
#include "PCF8576.h" PCF8576 lcd(D14, D15); int main() { lcd.print("mbed"); while(1) { } }
Definition at line 57 of file PCF8576.h.
Constructor & Destructor Documentation
| PCF8576 | ( | PinName | sda, |
| PinName | scl, | ||
| int | addr = PCF8576_DEFAULT_SLAVE_ADDRESS |
||
| ) |
PCF8576 constructor.
- Parameters:
-
sda SDA pin sdl SCL pin addr Slave address of the I2C peripheral (default: 0x70)
Definition at line 21 of file PCF8576.cpp.
| PCF8576 | ( | I2C & | i2c_obj, |
| int | addr = PCF8576_DEFAULT_SLAVE_ADDRESS |
||
| ) |
Create a PCF8576 instance which is connected to specified I2C pins with specified address.
- Parameters:
-
i2c_obj I2C object (instance) addr Slave address of the I2C-bus peripheral (default: 0x70)
Definition at line 26 of file PCF8576.cpp.
| ~PCF8576 | ( | ) |
PCF8576 destructor.
Definition at line 31 of file PCF8576.cpp.
Member Function Documentation
| void icon | ( | uint32_t | icon ) |
Print level-bar pictogram icon.
- Parameters:
-
icon Level-bar pictogram icon from 0 (all off) to 0xF (all on)
Definition at line 60 of file PCF8576.cpp.
| void initialize | ( | void | ) |
| void print | ( | char * | str ) |
Generated on Wed Jul 13 2022 02:09:56 by
1.7.2
NXP PCF8576 Universal LCD driver