Back to ORPHE-CORE.js ORPHE-CORE.jsに戻る
Get started by including ORPHE-CORE.js Javascript via CDN without the need for any build steps.
ビルドステップなしでCDN経由でORPHE-CORE.js Javascriptを含めることで、すぐに始めることができます。本格的な開発には、VSCodeを使って開発することをお勧めします。
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>ORPHE CORE JS DEMO</title>
</head>
<body>
<h1>Hello, ORPHE!</h1>
<button onclick="connectOrphe()">connect</button>
<script src="https://cdn.jsdelivr.net/gh/Orphe-OSS/ORPHE-CORE.js/js/ORPHE-CORE.js"
crossorigin="anonymous"></script>
<script>
var ble = new Orphe(0);
window.onload = function () {
// ORPHE CORE Init
ble.setup();
}
async function connectOrphe() {
await ble.begin('STEP_ANALYSIS_AND_SENSOR_VALUES');
ble.setLED(1, 0);
}
</script>
</body>
</html>
git clone https://github.com/Orphe-OSS/ORPHE-CORE.js.git