A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://docs.leaflabs.com/static.leaflabs.com/pub/leaflabs/maple-docs/latest/lang/api/highbyte.html below:

highByte() — Maple v0.0.12 Documentation

highByte()¶

(Macro) Extracts the second lowest byte of an integral data type.

Warning

This macro is provided for compatibility with Arduino only. It returns the second-least significant byte in an integral value. It makes sense to call this the “high” byte on a 16-bit int microcontroller like the Atmel chips on Arduinos, but it makes no sense at all on a 32-bit microcontroller like the STM32s in the Maple line.

In short: we provide this so that existing Arduino code works as expected, but strongly discourage its use in new programs.

Parameters¶

x: a value of any integral type.

Returns¶

Second lowest byte in x.

Example¶
int x = 0xDEADBEEF;
SerialUSB.println(x, HEX); // prints "BE"
Arduino Compatibility¶

The Maple version of highByte() is compatible with Arduino.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4