12345678910111213141516171819202122 |
- <html>
- <head>
- <script src="/drivers/view/lego-boost/bundle.js"></script>
- </head>
- <body>
- <a href="#" onclick="connect();">Connect</a>
- <a href="#" onclick="led();">Led</a>
- <a href="#" onclick="drive();">Drive</a>
- <a href="#" onclick="disconnect();">Disconnect</a>
- <a href="#" onclick="ai();">AI</a>
- <a href="#" onclick="stop();">Stop</a>
- <a href="#" onclick="turnLeft();">TurnLeft</a>
- <a href="#" onclick="turnRight();">TurnRight</a>
- <a href="#" onclick="driveForward();">DriveForward</a>
- <a href="#" onclick="driveBackward();">DriveBackward</a>
- <a href="#" onclick="turnAPositive();">turnAPositive</a>
- <a href="#" onclick="turnANegative();">turnANegative</a>
- </body>
- <script>
- console.log('Is Web Bluetooth supported: ' + isWebBluetoothSupported);
- </script>
- </html>
|