Useful Codes for C/C++ Beginners
Common Questions
Why can't I print message on Serial monitor?
Tips: Please double check if you write Serial.begin(115200), already inside void setup().
Core Functions (Serial)
Serial.available()
This function returns the number of bytes available to read.
When to use? To check if any data sent to IA Kit.
Serial.parseInt()
Always helpful when you're asking users to input a number (type::int) for a specific task.
line 1: wait for user to input a number / send data to IA Kit via Serial communication
line 2: create a integer variable, assigning user input data (integer) to variable a
Serial.parseFloat()
Another always helpful function when you need a number (type::float) for a specific task.
line 1: wait for user to input a number / send data to IA Kit via Serial communication
line 2: create a float variable, assigning user input data (float) to variable b
Company
© 2025 INCIPE Academy Limited





