index.html 832 B

12345678910111213141516171819202122
  1. <html>
  2. <head>
  3. <script src="/drivers/view/lego-boost/bundle.js"></script>
  4. </head>
  5. <body>
  6. <a href="#" onclick="connect();">Connect</a>
  7. <a href="#" onclick="led();">Led</a>
  8. <a href="#" onclick="drive();">Drive</a>
  9. <a href="#" onclick="disconnect();">Disconnect</a>
  10. <a href="#" onclick="ai();">AI</a>
  11. <a href="#" onclick="stop();">Stop</a>
  12. <a href="#" onclick="turnLeft();">TurnLeft</a>
  13. <a href="#" onclick="turnRight();">TurnRight</a>
  14. <a href="#" onclick="driveForward();">DriveForward</a>
  15. <a href="#" onclick="driveBackward();">DriveBackward</a>
  16. <a href="#" onclick="turnAPositive();">turnAPositive</a>
  17. <a href="#" onclick="turnANegative();">turnANegative</a>
  18. </body>
  19. <script>
  20. console.log('Is Web Bluetooth supported: ' + isWebBluetoothSupported);
  21. </script>
  22. </html>