7-segment to binary/hexadecimal converter

Click on the segments to turn them on or off.

A
F B
G
E C
D DP

Result:

ABCDEFGd
00000000
dGFEDCBA
000000000x00