Quotations

Kind of I noob question I guess, but I don’t get it to work. Really 've been searching all evening.

I’ve got a part of a LCD library (shift register) here:

void ByVacLCD::send3(int test) {;
  Wire.beginTransmission(_adr);
  Wire.send(0x02);
  Wire.send(test);
  Wire.endTransmission();
  delayMicroseconds(45);
}

But what I want is the variable between quotations:

  Wire.send("test");

How? :-[ :-[

/EDIT:

Can’t believe it I actually found it :smiley:

void ByVacLCD::send3(int test) {
  char buf[5];
  itoa(test, buf, 10);
  Wire.beginTransmission(_adr);
  Wire.send(0x02);
  Wire.send(buf);
  Wire.endTransmission();
  delayMicroseconds(45);
}

Hope maybe somebody can learn from it :slight_smile: