It took me way too long to locate this sample code. It’s not really hidden, google just wasn’t finding it.
Here is the spec sheet https://docs.m5stack.com/#/en/hat/hat_envII
Scroll to the bottom and it links you to https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Hat/ENVII_HAT