aboutsummaryrefslogtreecommitdiffstats
path: root/source/arduino/unsignedchar.rst
blob: 5c26d1792e09c866c242778c7e3598cc19579992 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
.. _arduino-unsignedchar:

unsigned char
=============

Description
-----------

An unsigned data type that occupies 1 byte of memory. Same as the
`byte <http://arduino.cc/en/Reference/Byte>`_ datatype.



The unsigned char datatype encodes numbers from 0 to 255.



For consistency of Arduino programming style, the *byte* data type
is to be preferred.



Example
-------

::

        unsigned char myChar = 240;



See also
--------


-  `byte <http://arduino.cc/en/Reference/Byte>`_
-  `int <http://arduino.cc/en/Reference/Int>`_
-  `array <http://arduino.cc/en/Reference/Array>`_
-  `Serial.println <http://arduino.cc/en/Serial/Println>`_




.. include:: cc-attribution.txt