Giter Site home page Giter Site logo

ledcube's Introduction

English version: English-README

LEDCUBE

現在制作中のLEDCUBEの制御と簡易的なシミュレーターです。 JSONデータで表示させるデータ(どのLEDを表示させるかどうか)のやりとりをする予定です。

シミュレーター

概要

シミュレーターはPythonで書いていて、matplotlibの三次元グラフで表示し、tkinterを使用したUIで操作することができます。

ライブラリ

シミュレーターは以下のライブラリ に依存しているため、動作させるには以下のライブラリ のインストールが必要となります。

  • matplotlib
  • pyperclip

また、以下の標準ライブラリ(インストールは不要)にも依存しています。 tkinterは環境によってインストールが必要な場合もあります。

  • tkinter
  • platform

pip3 install -r requirements.txtによって依存しているライブラリをすべてインストールすることができます。

使い方

python3で実行すると、自動でmatplotlibとtkinterのウィンドウが開きます。 matplotlibのウィンドウには点が512個描画されています。 ドラッグすると回転させることができます。

tkinterのウィンドウには64個のボタンでそれぞれのLEDを光らせるかどうかを操作することができます。 その上のupdate,copy,all turn off, all turn on ボタンではグラフの更新、座標データのクリップボードへのコピー、すべて消灯、すべて点灯をすることができます。

その上のドロップダウンリストからはどのレイヤーを操作するかを選択できます。 それぞれのレイヤーを選択し、64個のボタンを操作し、updateボタンを押すとグラフが更新されます。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.