PWM Servo Feedback (ADC) icon PWM Servo Feedback (ADC) — Add ADC positional feedback to hobby PWM servos via minor mod to EZ-B/Arduino; enables real-time position readout, calibration and puppet mirroring Try it →
 

Setbits

Utility.setBits(b7, b6, b5, b4, b3, b2, b1, b0)

Parameters

b7 The bit in the 8th position (most significant bit).
b6 The bit in the 7th position.
b5 The bit in the 6th position.
b4 The bit in the 5th position.
b3 The bit in the 4th position.
b2 The bit in the 3rd position.
b1 The bit in the 2nd position.
b0 The bit in the 1st position (least significant bit).

Returns

The number in decimal that is equal to the binary number (b7 b6 b5 b4 b3 b2 b1 b0).

Description

Converts the bits given by b7, b6, b5, b4, b3, b2, b1, b0 into decimal and returns the number.