To set the pins as GPIO Inputs:
pinMode(16, INPUT);
pinMode(17, INPUT);
pinMode(20, INPUT);
pinMode(21, INPUT);
pinMode(22, INPUT);
pinMode(23, INPUT);
pinMode(26, INPUT);
pinMode(27, INPUT);
Here's how to move those bits down to the lower 8 bits:
uint32_t sample...