Arduino’s Commands and Variables
- What is the command for setting up the Arduino pins as inputs or outputs? Answer: pinMode()
- What is the command for writing a value to a digital pin on the Arduino? Answer: digitalWrite()
- What is the command for reading the value of a digital pin on the Arduino? Answer: digitalRead()
- What is the command for setting up the baud rate for serial communication on the Arduino? Answer: Serial.begin()
- What is the command for sending data over the serial port on the Arduino? Answer: Serial.write()
- What is the command for receiving data over the serial port on the Arduino? Answer: Serial.read()
- What is the command for setting the PWM duty cycle on an Arduino pin? Answer: analogWrite()
- What is the command for reading the value of an analog pin on the Arduino? Answer: analogRead()
- What is the command for delaying the execution of the program on the Arduino? Answer: delay()
- What is the command for mapping a value from one range to another on the Arduino? Answer: map()
- What is the command for obtaining the time in milliseconds since the Arduino board was last reset? Answer: millis()
- What is the command for obtaining the time in microseconds since the Arduino board was last reset? Answer: micros()
- What is the command for setting the internal pull-up resistor on a digital pin on the Arduino? Answer: digitalWrite(pin, HIGH)
- What is the command for clearing the contents of the serial receive buffer on the Arduino? Answer: Serial.flush()
- What is the command for setting the analog reference voltage on the Arduino? Answer: analogReference()
- What is the command for generating a software interrupt on the Arduino? Answer: softwareInterrupt()
- What is the command for setting the interrupt mode on a pin on the Arduino? Answer: attachInterrupt()
- What is the command for detaching an interrupt from a pin on the Arduino? Answer: detachInterrupt()
- What is the command for setting the tone frequency on a piezo speaker on the Arduino? Answer: tone()
- What is the command for stopping the output of a tone on a piezo speaker on the Arduino? Answer: noTone()
- What is the command for setting the PWM frequency on an Arduino pin? Answer: analogWriteFrequency()
- What is the command for setting the PWM resolution on an Arduino pin? Answer: analogWriteResolution()
- What is the command for generating a pulse of a specific duration on an Arduino pin? Answer: pulseIn()
- What is the command for setting the number of bits used for analog-to-digital conversion on the Arduino? Answer: analogReadResolution()
- What is the command for setting the number of bits used for digital-to-analog conversion on the Arduino? Answer: analogWriteResolution()
- What is the command for setting the serial port data transmission format on the Arduino? Answer: Serial.begin(speed, format)
- What is the command for obtaining the version number of the Arduino software? Answer: Serial.println(F(“Arduino version “));
- What is the command for setting the I2C address on an Arduino board? Answer: Wire.begin(address)
- What is the command for sending data over the I2C bus on an Arduino board? Answer: Wire.write()
- What is the command for receiving data over the I2C bus on an Arduino board? Answer: Wire.read()
- What is the command for requesting data over the I2C bus on an Arduino board? Answer: Wire.requestFrom(address, length)
 | ReplyForward |