How to use mobile acceleormeter to on arduino led

how to use mobile acceleormeter to on arduino led

Good question… while no info in the DOCs (that I could find), you can simply click the [i] in the upper right corner of the widget (in edit mode) and see it’s built-in information.

Then with a bit of research and thinking, you could get something like this:

BLYNK_WRITE(V7) // accelerometer widget, Merge Mode
{
  Blynk.run();
  int rr = param[0].asInt(); // get a RED channel value.
  int gg = param[1].asInt(); // get a GREEN channel value.
  int bb = param[2].asInt(); // get a BLUE channel value.
  analogWrite(RedP, constrain(rr, 0, 255));  // Write to RED RGB pin.
  analogWrite(GrnP, constrain(gg, 0, 255));  // Write to GREEN RGB pin.
  analogWrite(BluP, constrain(bb, 0, 255));  // Write to BLUE RGB pin.
  }