107108109110111112113114115116117
@Override public void setupNodePorts() { super.setupNodePorts(); leds = new Leds(cpu, LEDS); if (getFlash() == null) { setFlash(new M25P80(cpu)); } if (flashFile != null) { getFlash().setStorage(new FileStorage(flashFile)); } }
8788899091929394959697
} public void setupNodePorts() { super.setupNodePorts(); if (getFlash() == null) { setFlash(new M25P80(cpu)); } if (flashFile != null) { getFlash().setStorage(new FileStorage(flashFile)); } }
130131132133134135136137138139140
return accelerometer.getADCZ(); } }); if (getFlash() == null) { setFlash(new M25P80(cpu)); } if (flashFile != null) { getFlash().setStorage(new FileStorage(flashFile)); } }
178179180181182183184185186187188
if (usart instanceof USARTSource) { registry.registerComponent("serialio", usart); } if (getFlash() == null) { setFlash(new M25P80(cpu)); } if (flashFile != null) { getFlash().setStorage(new FileStorage(flashFile)); } }