singwolf

About

Username
singwolf
Joined
Visits
66
Last Active
Roles
Member

Comments

  • I again change my code like this : @Override protected void setup() { gpioModule_2.routeData().fromAnalogIn(gpioPin2, Gpio.AnalogReadMode.ADC).stream(streamKey_2).commit().onComplete(GpioStreamSetup_2); /*gpioModule_2.routeData().fromAnal…
  • Hello,thank you for your advice,if I change my code like this : @Override protected void setup() { gpioModule_2.routeData().fromAnalogIn(gpioPin2, Gpio.AnalogReadMode.ADC).stream(streamKey_2).commit().onComplete(GpioStreamSetup_2); /*gpio…
  • Question1: I connected pressure  sensors  to the gpio pin2 and the gpio pin3 refering to the instruction manual. Question2: If I do like this:(The code for gpioPin3 is annotated)   @Override protected void setup() {         gpioModule_2.route…
  • Hi,I have posted the full code.But I do not know how to post imag of my chats.And I have taken a look at the barometer code as previously suggested. The problem is ,In my project ,if i only press the sensor on Gpio3,then datas of gpio2 and gpio…
  • @Override protected void boardReady() throws UnsupportedModuleException { gpioModule_2 = mwBoard.getModule(Gpio.class); // gpioModule_3 = mwBoard.getModule(Gpio.class); timerModule_2 = mwBoard.getModule(Timer.class); …
  • private void UpdatePressure() { JSONObject json = new JSONObject(); try { json.put("sensorData1", temp2); json.put("sensorData2",temp3); json.put("sensorData3", 0); json.put("sensorData4", 0); json.put…
  • private final AsyncOperation.CompletionHandler GpioStreamSetup_3 = new AsyncOperation.CompletionHandler() { @Override public void success(RouteManager result) { streamRouteManager_3= result; result.subscribe(streamKey_3, new …
  • private final AsyncOperation.CompletionHandler GpioStreamSetup_2 = new AsyncOperation.CompletionHandler() { @Override public void success(RouteManager result) { streamRouteManager = result; result.subscribe(st…
  • public class GpioPressueFragment extends SingleDataSensorFragment { private static java.util.Timer timer = new java.util.Timer(true); private static AtomicBoolean atomicBoolean = new AtomicBoolean(true); private TimerTask task; priv…
  • Hi,Eric. In my project ,if i only press the sensor on Gpio3,then datas of gpio2 and gpio3 showing in two charts are as following.In fact ,the gpioValue2 should be 1,but now ,gpioValue2 and gpioValue3  interfere with each other.How can I distinguis…
  • private final AsyncOperation.CompletionHandler GpioStreamSetup_3 = new AsyncOperation.CompletionHandler() { @Override public void success(RouteManager result3) { streamRouteManager_3= result3; result3.subscribe(streamKey_3, n…
  • private final AsyncOperation.CompletionHandler GpioStreamSetup_2 = new AsyncOperation.CompletionHandler() { @Override public void success(RouteManager result) { streamRouteManager = result; result.subscribe(streamKey_2, new R…