Hide minor edits - Show changes to markup
Stores the value to the right of the equal sign in the variable to the left of the equal sign.
The single equal sign in the C programming language is called the assignment operator. It has a different meaning than in algebra class where it indicated an equation or equality. The assignment operator tells the microcontroller to evaluate whatever value or expression is on the right side of the equal sign, and store it in the variable to the left of the equal sign.
int sensVal; // declare an integer variable named sensVal
senVal = analogRead(0); // store the (digitized) input voltage at analog pin 0 in SensVal
Guarda el valor en la derecha del símbolo "=" dentro de la variable a la izquierda del símbolo "=".
El signo de igualdad "=" en el lenguaje de programación C se llama el operador de asignación. Tiene un significado diferente que en la clase de álgebra en el que se indica una ecuación o igualdad. El operador de asignación le dice al microcontrolador que evalúe cualquier valor o expresión en el lado derecho del signo igual, y lo almacene en la variable a la izquierda del signo igual.
int sensVal; // declara una variable int llamada sensVal
senVal = analogRead(0); // guarda el valor (digitalizado) del voltaje de entrada del pin analógico 0 en SensVal
La variable en el lado izquierdo del operador de asignación (signo "=") tiene que ser capaz de mantener el valor almacenado en ella. Si no es suficientemente grande para contenerlo, el valor almacenado en la variable será incorrecto.
No confunda el operador de asignación [ = ] (un solo signo igual) con el operador de comparación [ == ] (un signo igual doble), que evalúa si dos expresiones son iguales.
The variable on the left side of the assignment operator ( = sign ) needs to be able to hold the value stored in it. If it is not large enough to hold value, the value stored in the variable will be incorrect.
The variable on the left side of the assignment operator ( = sign ) needs to be able to hold the value stored in it. If it is not large enough to hold a value, the value stored in the variable will be incorrect.
senVal = analogRead(0); @] // store the (digitized) input voltage at analog pin 0 in SensVal
senVal = analogRead(0); @] // store the (digitized) input voltage at analog pin 0 in SensVal
Don't confuse the assignment operator [ = ] (single equal sign) with the comparison operator [ == ] (double equal signs) that evaluates whether two expressions are equal.
Don't confuse the assignment operator [ = ] (single equal sign) with the comparison operator [ == ] (double equal signs), which evaluates whether two expressions are equal.
senVal = analogRead(0); @] // store the input voltage at analog pin 0 in SensVal
senVal = analogRead(0); @] // store the (digitized) input voltage at analog pin 0 in SensVal
[@ int sensVal; // declare an integer variable named sensVal
[@ int sensVal; // declare an integer variable named sensVal
Don't confuse the assignment operator ( = ) with the
Don't confuse the assignment operator [ = ] (single equal sign) with the comparison operator [ == ] (double equal signs) that evaluates whether two expressions are equal.
Assign value to the right of the equal sign to the variable to the left of the equal sign.
The single equal sign in the C programming language is called the assignment operator. It has a different meaning than in algebra class where it indicated an equation or equality. The assignment operator tells the atmega chip to evaluate whatever value or expression is on the right side of the equal sign, and store it in the variable to the left of the equal sign.
Stores the value to the right of the equal sign in the variable to the left of the equal sign.
The single equal sign in the C programming language is called the assignment operator. It has a different meaning than in algebra class where it indicated an equation or equality. The assignment operator tells the microcontroller to evaluate whatever value or expression is on the right side of the equal sign, and store it in the variable to the left of the equal sign.
int sensVal; senVal = analogRead(0);
int sensVal; // declare an integer variable named sensVal senVal = analogRead(0);// store the input voltage at analog pin 0 in SensVal
Assign value to the right of the equal sign to the variable to the left of the equal sign.
The single equal sign in the C programming language is called the assignment operator. It has a different meaning than in algebra class where it indicated an equation or equality. The assignment operator tells the atmega chip to evaluate whatever value or expression is on the right side of the equal sign, and store it in the variable to the left of the equal sign.
int sensVal; senVal = analogRead(0);
The variable on the left side of the assignment operator ( = sign ) needs to be able to hold the value stored in it. If it is not large enough to hold value, the value stored in the variable will be incorrect.
Don't confuse the assignment operator ( = ) with the