For Core1, Core2, and CoreS3 versions, GPIO 22-27 and GPIO 32 are free. GPIO 20 on Core1 and Core2 is used. GPIO 28-31 are unused. GPIO 40-48 are not on Core1/Core2 but are used for Camera on CoreS3. GPIO 19/20 on CoreS3 are used for USB.