Preconditions.checkState(this.node == null);
this.node = node;
try {
final Log log = node.getLog();
// Attach the client to the node and add some pin listeners.
poarkClient = new PoarkClient(Poark.BoardLayout.MegaLayout, node);
poarkClient.addPinChangeListener(kButton1,
new PinChangeListener() {
@Override
public void onPinStateChange(byte pin, int new_value) {
log.info("Pushed the button : \"" + pin + " - " + new_value + "\"");