summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/hh_sm510.cpp
diff options
context:
space:
mode:
author hap <happppp@users.noreply.github.com>2019-10-04 22:48:56 +0200
committer hap <happppp@users.noreply.github.com>2019-10-04 22:49:08 +0200
commitc81df094720ea60a7e0e8b0c6fb3106466bcaa34 (patch)
tree440ceb75ea74d36bb05159960c67384f7e88635d /src/mame/drivers/hh_sm510.cpp
parent43cac214a40f1d61d4a04c3727687b1f70b2c13d (diff)
hh_sm510: output lcd at higher freq (nw)
Diffstat (limited to 'src/mame/drivers/hh_sm510.cpp')
-rw-r--r--src/mame/drivers/hh_sm510.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mame/drivers/hh_sm510.cpp b/src/mame/drivers/hh_sm510.cpp
index 05fbbe03f0e..d3cacb99175 100644
--- a/src/mame/drivers/hh_sm510.cpp
+++ b/src/mame/drivers/hh_sm510.cpp
@@ -147,9 +147,9 @@ void hh_sm510_state::machine_start()
}
}
- // 1ms display decay ticks
+ // 1kHz display decay ticks
m_display_decay_timer = machine().scheduler().timer_alloc(timer_expired_delegate(FUNC(hh_sm510_state::display_decay_tick),this));
- m_display_decay_timer->adjust(attotime::from_msec(1), 0, attotime::from_msec(1));
+ m_display_decay_timer->adjust(attotime::from_hz(1024), 0, attotime::from_hz(1024));
// zerofill
m_inp_mux = 0;
@@ -238,13 +238,14 @@ void hh_sm510_state::set_display_size(u8 x, u8 y, u8 z)
WRITE16_MEMBER(hh_sm510_state::sm510_lcd_segment_w)
{
+ m_display_wait = 8;
set_display_size(2, 16, 2);
m_display_state[offset] = data;
}
WRITE16_MEMBER(hh_sm510_state::sm500_lcd_segment_w)
{
- m_display_wait = 32;
+ m_display_wait = 12;
set_display_size(4, 4, 1);
m_display_state[offset] = data;
}