2.0.1 • Published 6 years ago

giiker v2.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

giiker

JavaScript wrapper for GiiKER smart cube Bluetooth API

Usage

import GiiKER from 'giiker';

// Note: To use Web Bluetooth API trigger action such as button click is required
const button = document.querySelector('button#connect');
button.addEventListener('click', async () => {
	const giiker = await GiiKER.connect();
	giiker.on('move', (move) => {
		console.log(move.face); //=> "F"
		console.log(move.amount); //=> -1
		console.log(move.notation); //=> "F'"
	});
})
2.0.1

6 years ago

2.0.0

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago