Quantcast
Channel: Intel Communities: Message List
Viewing all articles
Browse latest Browse all 18146

I2C + LCD LCM1602 Problems

$
0
0

Hi there,

 

I have an intermittent problem with an i2c LCD connected to the my Edison. Running this simple program (see below) produces different results:

 

+ Sometimes "Hello World!" gets printed;

+ Sometimes I get a row with all "pixels" completely lit;

 

As I said I can't replicate it - running the program below from the command line produces the two above results randomly.

 

#include "lcm1602.h"
#include <unistd.h>
int
main(int argc, char **argv)
{    upm::Lcm1602* lcd = new upm::Lcm1602(6, 0x27);    lcd->setCursor(0,0);    lcd->write("Hello World!");    lcd->close();    return 0;

}

 

Any hints on how to debug this are greatly appreciated

 

Thanks!


Viewing all articles
Browse latest Browse all 18146

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>