mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-01-12 07:49:32 -05:00
Add WM8731 registers view.
This commit is contained in:
parent
24d60a11e3
commit
4ce27f51d4
@ -168,7 +168,10 @@ DebugMenuView::DebugMenuView(NavigationView& nav) {
|
|||||||
"Si5351C", RegistersWidgetConfig { 96, 2, 2, 8 },
|
"Si5351C", RegistersWidgetConfig { 96, 2, 2, 8 },
|
||||||
[](const size_t register_number) { return portapack::clock_generator.read_register(register_number); }
|
[](const size_t register_number) { return portapack::clock_generator.read_register(register_number); }
|
||||||
); } },
|
); } },
|
||||||
{ "WM8731", [&nav](){ nav.push<NotImplementedView>(); } },
|
{ "WM8731", [&nav](){ nav.push<RegistersView>(
|
||||||
|
"WM8731", RegistersWidgetConfig { wolfson::wm8731::reg_count, 1, 3, 4 },
|
||||||
|
[](const size_t register_number) { return portapack::audio_codec.read(register_number); }
|
||||||
|
); } },
|
||||||
} });
|
} });
|
||||||
on_left = [&nav](){ nav.pop(); };
|
on_left = [&nav](){ nav.pop(); };
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user