short
Descripción
Un short es un tipo de datos de 16-bit.
En todos los Arduinos (ATMega y basados en ARM) un short almacena un valor de 16-bit (2-byte). Esto produce un rango de -32,768 to 32,767 (valor mínimo de -2^15 y un valor máximo de (2^15) - 1).
Sintaxis
short var = val;
Parámetros
- var: el nombre de nuestra variable
- val: el valor asignado a la variable
Ejemplo
short ledPin = 13;
※ ARDUINO BUY RECOMMENDATION
Arduino UNO R3 | |
Arduino Starter Kit |
Disclosure: Some links in this section are Amazon affiliate links. If you make a purchase through these links, we may earn a commission at no extra cost to you.
Additionally, some links direct to products from our own brand, DIYables .
Additionally, some links direct to products from our own brand, DIYables .