From c7b0b280339064ab1b673ab7767d0318b2e9b72a Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Sun, 29 Nov 2020 19:31:22 +0100 Subject: 7-segment display is now drawn --- emu/7seg.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'emu/7seg.h') diff --git a/emu/7seg.h b/emu/7seg.h index 98c6908..4da0e1f 100644 --- a/emu/7seg.h +++ b/emu/7seg.h @@ -10,6 +10,11 @@ #include #include +#ifdef WITH_GUI +#include +#include +#endif + // VIA connected on PORTA to 3 wires leading to the 3 coupled 74HC595 // shift register which enable the ROM address lines to read the LED // segment data (cells 0-15 contain the encoded 7 segments of 16 hexdigits) @@ -45,6 +50,9 @@ void seg7_init( seg7_t *seg, uint16_t addr, bool initialize ); uint8_t seg7_read( void *obj, uint16_t addr ); void seg7_write( void *obj, uint16_t addr, uint8_t data ); +#ifdef WITH_GUI +void seg7_draw( void *obj, SDL_Renderer *renderer ); +#endif void seg7_deinit( void *obj ); #endif -- cgit v1.2.3-54-g00ecf