summaryrefslogtreecommitdiffstats
path: root/src/mame/drivers/beta.cpp
diff options
context:
space:
mode:
authorGravatarGravatar wilbertpol <wilbertpol@users.noreply.github.com>2018-05-20 19:27:20 +0200
committerGravatarGravatar R. Belmont <rb6502@users.noreply.github.com>2018-05-20 13:27:20 -0400
commit2beba4ce73fad917c7159a39939bace54f76494b (patch)
treee9d33c059bc5045f13d0c1748f0a044650370b8d /src/mame/drivers/beta.cpp
parentacf93837ac21b2b0bb003d1649b893200c269812 (diff)
downloadmame-2beba4ce73fad917c7159a39939bace54f76494b.tar.xz
mame-2beba4ce73fad917c7159a39939bace54f76494b.zip
Replace set_led_value and set_lamp_value with output_finders. [Wilbe… (#3592)
* Replace set_led_value and set_lamp_value with output_finders. [Wilbert Pol] * segaufo: keep the 2 bit lamp outputs
Diffstat (limited to 'src/mame/drivers/beta.cpp')
-rw-r--r--src/mame/drivers/beta.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/mame/drivers/beta.cpp b/src/mame/drivers/beta.cpp
index 8f3420e7133..c13cb63c4b7 100644
--- a/src/mame/drivers/beta.cpp
+++ b/src/mame/drivers/beta.cpp
@@ -58,7 +58,8 @@ public:
m_speaker(*this, "speaker"),
m_eprom(*this, EPROM_TAG),
m_q(*this, "Q%u", 6U),
- m_digit(*this, "digit%u", 0U)
+ m_digit(*this, "digit%u", 0U),
+ m_led(*this, "led%u", 0U)
{ }
DECLARE_INPUT_CHANGED_MEMBER( trigger_reset );
@@ -85,6 +86,7 @@ private:
required_device<generic_slot_device> m_eprom;
required_ioport_array<4> m_q;
output_finder<6> m_digit;
+ output_finder<2> m_led;
/* EPROM state */
int m_eprom_oe;
@@ -259,10 +261,10 @@ WRITE8_MEMBER( beta_state::riot_pb_w )
m_speaker->level_w(!BIT(data, 4));
/* address led */
- output().set_led_value(0, BIT(data, 5));
+ m_led[0] = BIT(data, 5);
/* data led */
- output().set_led_value(1, !BIT(data, 5));
+ m_led[1] = !BIT(data, 5);
/* EPROM address shift */
if (!BIT(m_old_data, 5) && BIT(data, 5))
@@ -315,6 +317,7 @@ DEVICE_IMAGE_UNLOAD_MEMBER( beta_state, beta_eprom )
void beta_state::machine_start()
{
m_digit.resolve();
+ m_led.resolve();
m_led_refresh_timer = machine().scheduler().timer_alloc(timer_expired_delegate(FUNC(beta_state::led_refresh),this));