Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PWM: rewrite all SAM aux board for lower level emulation #222

Merged
merged 1 commit into from
Feb 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/wpc/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -2724,6 +2724,14 @@ void core_set_pwm_output_type(int startIndex, int count, int type)
coreGlobals.physicOutputState[i].state.bulb.relative_brightness = 10.f / 1.f;
coreGlobals.physicOutputState[i].integrator = &core_update_pwm_output_led;
break;
case CORE_MODOUT_LED_STROBE_1_5MS:
coreGlobals.physicOutputState[i].state.bulb.relative_brightness = 5.f / 1.f;
coreGlobals.physicOutputState[i].integrator = &core_update_pwm_output_led;
break;
case CORE_MODOUT_LED_STROBE_8_16MS:
coreGlobals.physicOutputState[i].state.bulb.relative_brightness = 16.f / 8.f;
coreGlobals.physicOutputState[i].integrator = &core_update_pwm_output_led;
break;
case CORE_MODOUT_VFD_STROBE_05_20MS:
coreGlobals.physicOutputState[i].state.bulb.relative_brightness = 20.f / 0.5f;
coreGlobals.physicOutputState[i].integrator = &core_update_pwm_output_led;
Expand Down
2 changes: 2 additions & 0 deletions src/wpc/core.h
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,8 @@ extern void video_update_core_dmd(struct mame_bitmap *bitmap, const struct recta
#define CORE_MODOUT_BULB_89_25V_DC_S11 304 /* Incandescent #89/906 Bulb connected to 25V, used for flashers on S11 with output strobing */
#define CORE_MODOUT_LED 400 /* LED PWM (in fact mostly human eye reaction, since LED are nearly instantaneous) */
#define CORE_MODOUT_LED_STROBE_1_10MS 401 /* LED Strobed 1ms over 10ms for full power */
#define CORE_MODOUT_LED_STROBE_1_5MS 402 /* LED Strobed 1ms over 5ms for full power */
#define CORE_MODOUT_LED_STROBE_8_16MS 403 /* LED Strobed 8ms over 16ms for full power */
#define CORE_MODOUT_VFD_STROBE_05_20MS 450 /* Vacuum Fluorescent Display used for alpha numeric segment displays */
#define CORE_MODOUT_VFD_STROBE_1_16MS 451 /* Vacuum Fluorescent Display used for alpha numeric segment displays */

Expand Down
Loading
Loading