Wire H Library Download Rating: 9,5/10 6636 reviews
LCD.h
#ifndef _LCD_H_
#define_LCD_H_
unsignedchar k=0,j=0;
unsignedchar save=0;
voidlcd_init(void);
voidlcd_cmd(unsignedchar cmd);
voidlatch(void);
voiddely_ns(unsignedchar tim);
voidlcd_char(unsignedchar single);
voidlcd_string(unsignedchar str[32]);
voidlcd_string_signed(char* str);
voidlcd_showvalue(unsignedchar num);
voidlcd_gotoxy(unsignedchar row,unsignedchar column);
voiddelay_ms(unsignedint ms);
voidlcd_clear();
voidlcd_init(void) //init the lcd
{
delay_ms(20);
save=PORTB;
DDRB=0xFF;
delay_ms(15);
PORTB=0x20;
lcd_cmd(0x01);
lcd_cmd(0x02);
lcd_cmd(0X80);
delay_ms(20);
}
voidlatch(void)
{
PORTB&=~0x04;
dely_ns(200);
PORTB =0x04;
dely_ns(200);
PORTB&=~0x04;
}
voiddely_ns(unsignedchar tim)
{
for(j=0;j<tim;j++)
{
for(k=0;k<11;k++)
{};
}
}
voidlcd_cmd(unsignedchar cmd)
{
PORTB&=~0x07;
PORTB=((cmd&0xF0));
latch();
PORTB=(((cmd&(0x0F))*16));
latch();
}
voidlcd_char(unsignedchar single)
{
PORTB=0x01;
PORTB=0x00;
PORTB=(single&0xF0) 0x01;
latch();
PORTB=((single&(0x0F))*16) 0x01;
latch();
}
voidlcd_string(unsignedchar str[32])
{
unsignedchar k=0;
PORTB=0x01;
PORTB=0X00;
while(str[k]!='0') //Till null character is encountered
{
if(k16)
lcd_cmd(0XC0);
PORTB=((str[k])&0xF0) 0x01;
latch();
PORTB=((str[k]&(0x0F))*16) 0x01;
latch();
k++;
}
}
voidlcd_string_signed(char* str)
{
unsignedchar k=0;
PORTB=0x01;
PORTB=0X00;
while(str[k]!='0') //Till null character is encountered
{
if(k16)
lcd_cmd(0XC0);
PORTB=((str[k])&0xF0) 0x01;
latch();
PORTB=((str[k]&(0x0F))*16) 0x01;
latch();
k++;
}
}
voidlcd_showvalue(unsignedchar num) //prints the decimal 3digit value of num
{
unsignedchar H=0,T=0,O=0;
H=num/100;
T=(num - (H*100))/10;
O=(num - (H*100) - (T*10));
lcd_char(H+48);
lcd_char(T+48);
lcd_char(O+48);
}
voidlcd_gotoxy(unsignedchar row,unsignedchar column) //move cursor to the specified position
{
if(row0)
{
lcd_cmd(0x80+column);
}
elseif(row1)
{
lcd_cmd(0xC0+column);
}
}
voiddelay_ms(unsignedint ms)
{
int i;
while (ms-- > 0)
{
for (i = 0; i < 3276; ++i)
asm('nop');
}
}
voidlcd_clear()
{
lcd_cmd(0x01);
}
#endif
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

MPU6050 Arduino Library. The Wire library implementation uses a 32 byte buffer, therefore any communication should be within this limit. Exceeding bytes in a single transmission will just be dropped. To use this library #include Wire.h Examples. Digital Potentiometer: Control an Analog Devices AD5171 Digital Potentiometer.

The sketch starts with including wire.h & RTClib.h libraries for communicating with the module. We then create an object of RTClib library and define daysOfTheWeek 2D character array to store days information. In setup and loop sections of the code, we use following functions to interact with the RTC module. Analytics cookies. We use analytics cookies to understand how you use our websites so we can make them better, e.g. They're used to gather information about the pages you visit and how many clicks you need to accomplish a task. Arduino Library free download - Music Library, Wireless Communication Library C Developer Edition, My Movie Library, and many more programs. The Wire library implementation uses a 32 byte buffer, therefore any communication should be within this limit. Exceeding bytes in a single transmission will just be dropped. To use this library #include Wire.h Examples. Digital Potentiometer: Control an Analog Devices AD5171 Digital Potentiometer.

The new NOPO board is a modular controller for home or industrial automation.

LiquidCrystal_I2C.h library – for Arduino IDE 1.6.x

This library is a modified version of the H. Mario LiquidCrystal_I2C V.2.0 lib. We fixed a function in LiquidCrystal_I2C.cpp in order to allow it working with Arduino IDE 1.6.4, 1.6.5, 1.6.6, 1.6.7 and the latest 1.6.8 revision.

Virtual Wire.h Library Download

Download

If you want to download the whole library in a .zip file, you can do it clicking on the link below:

You also can read the following brief explanation, it could be interesting.

Where did we gather the information?

Following the valuable informations provided by this Arduino Forum’s post we found where and how to fix the problem about an incorrect printing way on our LCD board. Same problem has been noticed from many users with as many solutions, with 95% of wrong instructions and sci-fi answers. We published our solution here because it works perfectly with our I2C PCF8574 LCD Board. We suppose that our fix is the same made by Marco Schwartz. You can optionally download Marco’s good job here.

How did we fix the problem?

Even though it looked like a vertical wall to be climbed by bare hands, mainly because of the plethora of results provided by Google to be inspected before finding any useful link, the solution was simple and simply deployable. To do this you must open LiquidCrystal.cpp with a text editor and edit this function:

The

One Wire.h Library Download