aboutsummaryrefslogtreecommitdiffstats
path: root/docs/source/arduino/unsignedchar.rst
blob: f846105c980eed91af737646489c8e18b68342b7 (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
.. _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>`_