Update jbio for testmenu support and add jbio-p4io
This commit is contained in:
+13
-2
@@ -102,7 +102,7 @@ bool jb_io_read_inputs(void)
|
||||
return true;
|
||||
}
|
||||
|
||||
bool jb_io_write_outputs(void)
|
||||
bool jb_io_write_lights(void)
|
||||
{
|
||||
/* The generic input stack currently initiates lighting sends and input
|
||||
reads simultaneously, though this might change later. Perform all of our
|
||||
@@ -122,9 +122,20 @@ uint16_t jb_io_get_panel_inputs(void)
|
||||
return jb_io_panels;
|
||||
}
|
||||
|
||||
bool jb_io_set_panel_mode(enum jb_io_panel_mode mode)
|
||||
{
|
||||
// geninput only uses 1 switch per panel, so ignore alternate modes
|
||||
return true;
|
||||
}
|
||||
|
||||
bool jb_io_set_coin_blocker(bool blocked)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
void jb_io_set_rgb_led(enum jb_io_rgb_led unit, uint8_t r, uint8_t g, uint8_t b)
|
||||
{
|
||||
mapper_write_light(unit * 3, r);
|
||||
mapper_write_light(unit * 3 + 1, g);
|
||||
mapper_write_light(unit * 3 + 2, b);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,5 +7,7 @@ EXPORTS
|
||||
jb_io_init
|
||||
jb_io_read_inputs
|
||||
jb_io_set_loggers
|
||||
jb_io_set_panel_mode
|
||||
jb_io_set_rgb_led
|
||||
jb_io_write_outputs
|
||||
jb_io_set_coin_blocker
|
||||
jb_io_write_lights
|
||||
|
||||
Reference in New Issue
Block a user