Skip to content
forked from hakatashi/giiker

JavaScript wrapper for GiiKER smart cube Bluetooth API

License

Notifications You must be signed in to change notification settings

pdoronila/giiker

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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'"
	});
})

About

JavaScript wrapper for GiiKER smart cube Bluetooth API

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%