Skip to content
This repository has been archived by the owner on Apr 23, 2020. It is now read-only.

yusanish/konashi-webble-module

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

konashi Web Bluetooth module

This repository mainly forked from the official repository YUKAI/konashi-web-bluetooth

Requirements

This module uses Web Bluetooth API. The support of API is limited. Please confirm the link (https://caniuse.com/#feat=web-bluetooth).

Usage

Before run below script, please get konashi board and turn on the power.

import Konashi from 'konashi-web-bluetooth'

Konashi.find(true).then(k => { // find konashi board and try to connect
  k.pinModeAll("0xFF") // make all pins to OUTPUT mode.
    .then(() => {
      k.digitalWrite(Konashi.consts.PIO1, Konashi.consts.HIGH); // write HIGH to PIO1
    });
    .then(() => {
      setTimeout(() => {
        k.digitalWrite(Konashi.consts.PIO1, Konashi.consts.LOW); // after 1sec write LOW to PIO1
      }, 1000);
    })
});

TODO

  • test uart functions
  • test i2c functions
  • support SPI

About

konashi Web Bluetooth module (About konashi: https://konashi.ux-xu.com/)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published