From 55a69256e457f8fdf37da43f4c1f34b8e901feb3 Mon Sep 17 00:00:00 2001 From: parksb Date: Wed, 15 Nov 2023 11:17:40 +0900 Subject: [PATCH] Write example code for logging --- src/getting-started.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/getting-started.md b/src/getting-started.md index 0e6e910..c84d94a 100644 --- a/src/getting-started.md +++ b/src/getting-started.md @@ -73,6 +73,7 @@ class MainActivity: AppCompatActivity(), SensorEventListener { override fun onSensorChanged(event: SensorEvent) { if (event.sensor.type == Sensor.TYPE_ACCELEROMETER) { val (x, y, z) = event.values + Log.i(this::class.java.simpleName, "$x, $y, $z") } } @@ -122,6 +123,7 @@ class MainActivity: AppCompatActivity(), SensorEventListener { override fun onSensorChanged(event: SensorEvent) { if (event.sensor.type == Sensor.TYPE_ACCELEROMETER) { val (x, y, z) = event.values +- Log.i(this::class.java.simpleName, "$x, $y, $z") + zap.send(ZapAccelerometer(x, y, z)) } }