Use Arduino through serial to update live data on website

Hello, newbie here.
I'd like to use bitlash commander to show me status of inputs.
All the examples I find are for output ( eg: slider to analog output),
and all the widgets are inputs afaict ( a slider or button is a user input ).

I'd like to use a simple arduino input, say d2 and have bitlash commander display its current value.
like widget.state=d2 ( pseudo code )

I tried to use a button as an 'led' and had not luck.
Please, something simple,
I know theres tricks to make it auto update etc, but to 'just work' would be a great start for me.

my tries include...
(this does not work)
Panel.addButton({x:96, y: 24,
text:'dummy',
id:'d2led',
highlighttrue:0,
onload:'value=d2; print d2', // this has no effect
autorun: true
});

and it is not allowed to use a real data source as the input to a scope
var scope = Panel.addScope({
id:'scopd2', text:'wheelswxscope',
x:900, y:100,
min: 0,
max: 1,
autorun:250,
source:'d2' // this is illegal, must be the id of a widget
});

what can i use as a boolean output widget ( like an led )?
how can a real input pin make the 'led' illuminate?

regards tjtr33