This shows you the differences between two versions of the page.
|
arduino:arithmetic_operators:assignment [2013/02/15 18:05] 127.0.0.1 external edit |
arduino:arithmetic_operators:assignment [2024/02/16 01:04] (current) |
||
|---|---|---|---|
| Line 7: | Line 7: | ||
| ==== Example ==== | ==== Example ==== | ||
| - | <code arduino> int sensVal; // declare an integer variable named sensVal | + | <code arduino> |
| - | senVal = analogRead(0); </code> // store the (digitized) input voltage at analog pin 0 in SensVal | + | int sensVal; |
| + | // declare an integer variable named sensVal | ||
| + | senVal = analogRead(0); | ||
| + | // store the (digitized) input voltage at analog pin 0 in SensVal | ||
| + | </code> | ||
| ==== Programming Tips ==== | ==== Programming Tips ==== | ||
| Line 17: | Line 21: | ||
| ==== See Also ==== | ==== See Also ==== | ||
| - | *[[arduino:control structures:If| if (comparison operators)]] | + | *[[arduino:control structures:If| if (comparison operators)]] |
| - | *[[char]] | + | *[[arduino:data_types:char|char]] |
| - | *[[int]] | + | *[[arduino:data_types:int|int]] |
| - | *[[long]] | + | *[[arduino:data_types:long|long]] |
| Source: arduino.cc | Source: arduino.cc | ||