Skip to content

Catethysis/node-pcf8574-hd44780

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-pcf8574-hd44780

If you know PCF8574 address

const lcd = require('./pcf8574-hd44780');
let LCD = new lcd({i2cbus: 1, pcf8574_addr: 0x27});

LCD.init_hd44780();
LCD.led = true;
LCD.print_string(`Temperature: 27${LCD.special_signs.degree}C`);

If you need to search PCF8574 on the bus first

const lcd = require('./pcf8574-hd44780');
let LCD = new lcd({i2cbus: 1});

LCD.scan_pcf8574((dev) => {
    // You can select a specific PCF chip on the bus if you have several
    LCD.pcf8574_addr = dev[0];
    LCD.init_hd44780();
    LCD.led = true;
    LCD.print_string(`Temperature: 27${LCD.special_signs.degree}C`);
});

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published