src/OPL2.cpp
/**
 * Hard reset the OPL2 chip. This should be done before sending any register data to the chip.
 */
Hard reset the OPL2 chip. This should be done before sending any register data to the chip.
Hard reset the OPL2 chip . This should be done before sending any register data to the chip .
void OPL2::reset() {
	digitalWrite(pinReset, LOW);
	delay(1);
	digitalWrite(pinReset, HIGH);
	for(int i = 0; i < 256; i ++) {
		oplRegisters[i] = 0x00;
		write(i, 0x00);
	}
}
void OPL2 :: reset ( ) { digitalWrite ( pinReset , LOW ) ; delay ( 1 ) ; digitalWrite ( pinReset , HIGH ) ; for ( int i = 0 ; i < 256 ; i ++ ) { oplRegisters [ i ] = 0x00 ; write ( i , 0x00 ) ; } }
Hard reset the OPL2 chip.
Hard reset the OPL2 chip .