Waveshare Bus Servos icon Waveshare Bus Servos Control Waveshare servos (TTL/RS485): set position & speed, release torque, read position. RTS option for converters; reverse-engineered protocol. Try it →
 

Getbit

Utility.getBit(value, bitPosition)

Parameters

value Number to get bit from.
bitPosition Position to get bit from.

Returns

The bit (1 or 0) at position bitPosition in the number value.

Description

Returns the bit at position bitPosition in the number value. Position is 0 indexed starting from the least significant bit.