From f71d28a3107bf14ad3fa22109a34c746911b3f61 Mon Sep 17 00:00:00 2001 From: Pavel Pisa Date: Thu, 14 Feb 2019 11:08:28 +0100 Subject: Implemented graphic representation and update of line and RGB LEDs. Signed-off-by: Pavel Pisa --- qtmips_machine/peripspiled.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'qtmips_machine') diff --git a/qtmips_machine/peripspiled.cpp b/qtmips_machine/peripspiled.cpp index f811714..03b74f9 100644 --- a/qtmips_machine/peripspiled.cpp +++ b/qtmips_machine/peripspiled.cpp @@ -61,12 +61,15 @@ bool PeripSpiLed::wword(std::uint32_t address, std::uint32_t value) { switch (address) { case SPILED_REG_LED_LINE_o: spiled_reg_led_line = value; + emit led_line_changed(value); break; case SPILED_REG_LED_RGB1_o: spiled_reg_led_rgb1 = value; + emit led_rgb1_changed(value); break; case SPILED_REG_LED_RGB2_o: spiled_reg_led_rgb2 = value; + emit led_rgb2_changed(value); break; default: break; -- cgit v1.2.3