flandreas / antares

Digital circuit learning platform
49 stars 6 forks source link

Change LED colour in symbol controls #633

Closed flandreas closed 1 year ago

flandreas commented 1 year ago

Light-emitting components (LED, 7-segment etc.) can have different colours. When adding such a component as control to a custom subcircuit symbol, the colour is always the same as the colour of the component in the subcircuit.

In Ben Eater's 8-bit computer, the 8-bit registers generally have 8 red LEDs in their symbol.

Screenshot 2023-09-13 at 18 57 27

However, the IR (instruction register) in Ben's computer is supposed to have blue LEDs for the 4 MSB and yellow LEDs for the 4 LSBs. Although it is the same subcircuit ("Ben's 8-bit register"), it would be nice if the user could select "Edit symbol" and then change the LED's colour, just for this one instance of the 8-bit register subcircuit.

Screenshot 2023-09-13 at 18 59 29

And the same of course for the other light-emitting components (7-segment, 16-segment, LED Matrix).