mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-08-15 00:17:41 +00:00
WM8731: Add method to detect codec is present.
Used to determine PortaPack hardware version.
This commit is contained in:
@@ -87,6 +87,10 @@ void WM8731::init() {
|
||||
headphone_mute();
|
||||
}
|
||||
|
||||
bool WM8731::detected() {
|
||||
return reset();
|
||||
}
|
||||
|
||||
bool WM8731::reset() {
|
||||
return write(0x0f, 0);
|
||||
}
|
||||
|
Reference in New Issue
Block a user