Playing with Arduino
A page to record my playing with Arduino
_BV()

Abstract

The _BV() is a macro that shifts 1 to left by the specified numnber.

Source Code

The _BV() is defined in hardware/tools/avr/avr/include/avr/sfr_defs.h, as shown below.

1
#define _BV(bit) (1 << (bit))

The _BV() is a macro that shifts 1 to left by the specified numnber. For example _BV(5) would be 0b00100000.

Version

Arduino 1.8.13/avr-gcc 7.3.0-atmel3.6.1-arduino

Last Update

June 19, 2020

inserted by FC2 system