Bump to latest simapi for unix timestamp ticks. Push unix timestamp ticks to lua variable. Update test logic to test on 8000 rpms. Update example lua scripts with examples of led rpm blink.

This commit is contained in:
Paul Dino Jones
2025-07-15 16:39:41 -04:00
parent d2fa72f47c
commit 0abd5e9b68
5 changed files with 130 additions and 4 deletions
+10 -3
View File
@@ -10,8 +10,6 @@
-- SIMAPI_FLAG_BLACK_ORANGE = 8,
-- SIMAPI_FLAG_ORANGE = 9
led_clear_all()
if simdata.rpm > 0 and simdata.maxrpm > 0 then
rpmmargin = .05*simdata.maxrpm;
rpminterval = (simdata.maxrpm-rpmmargin) / 6;
@@ -30,7 +28,16 @@ if simdata.rpm > 0 and simdata.maxrpm > 0 then
if litleds >= 6 then
color = RED
end
set_led_range_to_color(1, litleds, color)
if litleds >= 6 then
if simdata.mtick % 2 == 0 then
set_led_range_to_color(1, litleds, color)
else
led_clear_all()
end
else
set_led_range_to_color(1, litleds, color)
end
end
if simdata.playerflag == 0 then