aboutsummaryrefslogtreecommitdiffstats
path: root/source/arduino/bytecast.rst
diff options
context:
space:
mode:
authorMarti Bolivar <mbolivar@mit.edu>2010-11-28 11:23:33 -0500
committerMarti Bolivar <mbolivar@mit.edu>2010-11-28 11:23:33 -0500
commitd9cbd78e29d42e70bb46641dd43ee0772c8c975f (patch)
tree80a67cba4468dbcd89b3cd23ad56695b1f146c66 /source/arduino/bytecast.rst
parent546b34076d230b617ba86defb6b90cd934b01878 (diff)
downloadlibrambutan-d9cbd78e29d42e70bb46641dd43ee0772c8c975f.tar.gz
librambutan-d9cbd78e29d42e70bb46641dd43ee0772c8c975f.zip
reorganized all the arduino/ docs into a lang/ subdirectory since
they're properly CC attributed now.
Diffstat (limited to 'source/arduino/bytecast.rst')
-rw-r--r--source/arduino/bytecast.rst53
1 files changed, 0 insertions, 53 deletions
diff --git a/source/arduino/bytecast.rst b/source/arduino/bytecast.rst
deleted file mode 100644
index 348c9fb..0000000
--- a/source/arduino/bytecast.rst
+++ /dev/null
@@ -1,53 +0,0 @@
-.. highlight:: cpp
-
-.. _arduino-bytecast:
-
-byte() (cast)
-=============
-
-Description
------------
-
-Converts a value to the :ref:`byte <arduino-byte>` data type.
-
-.. note::
-
- Casting to the byte type is provided for compatibility with
- Arduino. However, the recommended Maple type for storing an 8-bit
- unsigned integer is ``uint8``. (C and C++ programmers: ``stdint.h``
- is also available).
-
- In order to cast a variable ``x`` to a ``uint8``, the
- following syntax can be used::
-
- uint8(x);
-
-Syntax
-------
-
-``byte(x)``
-
-
-Parameters
-----------
-
-**x**: a value of any integer type
-
-
-Returns
--------
-
-The value, converted to a ``byte``. Note, however, that if the value
-is larger than the maximum value you can store in a byte (255), then
-the results might be strange and unexpected.
-
-
-See Also
---------
-
-- :ref:`arduino-byte`
-
-
-
-
-.. include:: cc-attribution.txt