working on rewrite
This commit is contained in:
@@ -32,16 +32,16 @@ void SoundBoardPinController::activate(const items::detail::Sound &sound)
|
||||
|
||||
write_sound_address(sound.get_address());
|
||||
|
||||
fire_sound(true);
|
||||
fire_sound();
|
||||
}
|
||||
|
||||
void SoundBoardPinController::deactivate(const items::detail::Sound &sound)
|
||||
{
|
||||
std::lock_guard<std::mutex> guard(*output_item_mutex);
|
||||
|
||||
write_sound_address(sound.get_address());
|
||||
write_sound_address(0);
|
||||
|
||||
fire_sound(false);
|
||||
fire_sound();
|
||||
}
|
||||
|
||||
|
||||
@@ -56,9 +56,11 @@ void SoundBoardPinController::write_sound_address(uint8_t address) const
|
||||
write_pin(pins_sound.at("G"), address & 0b1000000u);
|
||||
}
|
||||
|
||||
void SoundBoardPinController::fire_sound(bool fire) const
|
||||
void SoundBoardPinController::fire_sound() const
|
||||
{
|
||||
PinController::write_pin(pins_sound.at("fire"), fire);
|
||||
PinController::write_pin(pins_sound.at("fire"), true);
|
||||
|
||||
PinController::write_pin(pins_sound.at("fire"), false);
|
||||
}
|
||||
|
||||
void SoundBoardPinController::write_pin(uint8_t pin, bool value) const
|
||||
|
||||
Reference in New Issue
Block a user