Update jbio for testmenu support and add jbio-p4io

This commit is contained in:
Will Toohey
2021-04-04 16:41:45 +10:00
parent 6ce4cce500
commit 2a03690772
34 changed files with 1214 additions and 172 deletions
+13 -2
View File
@@ -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);
}
}
+3 -1
View File
@@ -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