From 638883bf39fba9bd6aacc81b69b6952e238dd532 Mon Sep 17 00:00:00 2001 From: Gustavo Henrique Santos Souza de Miranda Date: Wed, 3 Jun 2026 15:07:04 -0300 Subject: [PATCH] Add a Initialize method on the YMF262-HAL.hpp to initialize he IC with the proper order --- Lib/YMF262-HAL/Inc/YMF262-HAL.hpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Lib/YMF262-HAL/Inc/YMF262-HAL.hpp b/Lib/YMF262-HAL/Inc/YMF262-HAL.hpp index df1819c..d647b29 100644 --- a/Lib/YMF262-HAL/Inc/YMF262-HAL.hpp +++ b/Lib/YMF262-HAL/Inc/YMF262-HAL.hpp @@ -57,6 +57,11 @@ class YMF262_HAL{ _t_rdh_ticks = (uint32_t)(10 * ticks_per_ns); }; + void initialize(OPLMode mode){ + initial_clear(); + set_OPL_Mode(mode); + } + void write(Bank bank, uint8_t reg, uint8_t data){ write_bus(bank,Port::ADDRESS,reg); write_bus(bank,Port::DATA,data);