Skip to content

toio.jsを参考にpythonに書き換えました。

License

Notifications You must be signed in to change notification settings

sandfishfactory/toiopy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

toiopy

toio.jsを参考に python に書き換えました。

from toiopy.scanner import NearestScanner


def main():
    scanner = NearestScanner(provider)
    cube = scanner.start()

    cube.connect()
    cube.move(100, 100, 1000)
    cube.disconnect()

if __name__ == '__main__':
    provider = NearestScanner.get_provider()
    provider.run_mainloop_with(main)

前提条件

python は 3.7.1 で動作確認中です。

インストール手順

git clone https://github.com/sandfishfactory/toiopy.git

cd toiopy
python -m venv venv
source venv/bin/activate
pip install -r requirements.txt

# Adafruit_Python_BlueFruitLEをcloneしたディレクトリに移動
cd {Adafruit_Python_BluefruitLEディレクトリ}
sudo python setup.py install

cd {toiopyディレクトリ}

About

toio.jsを参考にpythonに書き換えました。

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages