m5stack / M5StickC

M5StickC Arduino Library
MIT License
477 stars 222 forks source link

Add SetGPIO0 method to configure output to microphone #104

Closed fustilio closed 4 years ago

fustilio commented 4 years ago

Implement method for AXP192 to modify GPIO0 configuration. Tested on microphone demo code: Calling M5.Axp.SetGPIO0(false) disables power to microphone. Calling M5.Axp.SetGPIO0(true) enables power to microphone.

Attached table from datasheet for reference: image

EeeeBin commented 4 years ago

Thanks for your PR :)