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;

Ver También

ARDUINO BUY RECOMMENDATION

Arduino UNO R3
Arduino Starter Kit
Please note: These are affiliate links. If you buy the components through these links, We may get a commission at no extra cost to you. We appreciate it.

※ OUR MESSAGES

  • We are AVAILABLE for HIRE. See how to hire us to build your project
  • Any suggestion, correction, and translation? please email us at ArduinoGetStarted@gmail.com, We appreciate it
  • We mainly keep improving the references in English. See English version of this page for the latest update.