Skip to content

Instantly share code, notes, and snippets.

View simulationguest's full-sized avatar

Leo J. simulationguest

  • Munich
  • 19:24 (UTC +02:00)
View GitHub Profile
<script lang="ts">
let gyro = new Gyroscope({ frequency: 60 });
let x = 0,
y = 0,
z = 0;
gyro.addEventListener("reading", () => {
x += gyro.x;