Learning Programming with the Arduino Video 6: Char Variables and the ASCII Table

preview_player
Показать описание
This is part 6 of a series of videos that introduce C++ programming using the Arduino. It discusses the use of 'char' variables for storing characters in C++ Arduino sketches.

Рекомендации по теме
Комментарии
Автор

Thank you, @Make Course. You have helped me convert a char value from an Arduino membrane keypad to its integer value as a byte value. For example,

char inputNumber_char;
byte inputNumber;
// And then I press '2' on the keypad and assign the input to the inputNumber_char variable. The ASCII value of '2' is 50.
inputNumber = inputNumber_char - '0'; // This line evaluates to 50 - 48 = 2 because the ASCII value of 0 is 48.

Now the value of inputNumber is what I wanted, i.e., 2.

Other references:

kyrollos
Автор

Hello thanks for the video. Sir could you please tell me how to display byte variable on LCD 4x20. Thank you so much.

chetsadawutruangrojn
welcome to shbcf.ru