String myString = "arduino this was very difficult problem i just solved that ";
unsigned int len = myString.length() + 1;
void setup() {
Serial.begin(9600);
char buff[len];
myString.getBytes(buff, len);
for (int i = 0; i < len; i++)
{
Serial.println(buff[i]);
}
}
void loop() {
}
No comments:
Post a Comment