147
edits
Line 296: | Line 296: | ||
// LCD messages | // LCD messages | ||
// convert MQ-2's value to ASCII code | // convert MQ-2's value to ASCII code | ||
int ascii_value = map(mq2g3V, | int ascii_value = map(mq2g3V, 200, 800, 65, 122); | ||
char ascii_char = (char)ascii_value; | char ascii_char = (char)ascii_value; | ||
edits