sharpie7 / circuitjs1

Electronic Circuit Simulator in the Browser
GNU General Public License v2.0
2.35k stars 642 forks source link

Add "# of Bits" edit info to ADC and DAC #608

Closed nulldg closed 3 years ago

nulldg commented 3 years ago

I'm not sure why this hasn't been added until now. I tested it just in case it was omitted due to some kind of bug or inherent flaw, but it seems to work. Test code (with 8 pin ADC to DAC):

166 256 160 288 160 0 8
167 160 160 192 160 0 8
R 160 384 160 336 0 0 40 5 0 0 0.5
w 160 384 160 416 0
w 160 416 352 416 0
w 352 416 352 384 0
R 160 160 112 160 0 3 10 2.5 2.5 0 0.5
O 352 160 400 160 1 1
o 7 16 0 4098 5 0.1 0 2 6 0