Git Product home page Git Product logo

dynamicdrive_arduino's Introduction

DynamicDriver

ダイナミック制御を行うクラス

  • 動作例

Usage

  • コンストラクタの引数にVcc構造体実体、GNDピン(下桁から)をセット

    //                        a  b  c  d  e  f  g  h
    //                        ↓  ↓  ↓  ↓  ↓  ↓  ↓  ↓
    DynamicDriver::Vcc vcc = {7, 6, 3, 4, 5, 8, 2, 9};  // set Vcc pins assing
    DynamicDriver led(vcc, 13, 12, 11, 10);             // set Vcc structure and GND pins assing
    
    //Other
    //DynamicDriver led({7, 6, 3, 4, 5, 8, 2, 9}, 13, 12, 11, 10);
    
  • ピン番号は以下のフォーマット

  • 数字を出力

    int outputNumber = 1234;
    led.show(outputNumber);  //>1234
    
    //double outputNumber = 123.4;
    //led.show(outputNumber, 1);  //>123.4

Functions

  • DynamicDriver(const Vcc &vcc, T... gnd)

    DynamicDriver のオブジェクトを作成

    vcc : Vcc 構造体の実体

    gnd : GND ピン(桁数分)

  • show(uint32_t num)

    整数値を出力

    num : 出力値(整数)

  • show(double num, uint8_t maxDecimalDigit = 1)

    小数値を出力

    num : 出力値(浮動小数)

    maxDecimalDigit : 表示する小数の桁

  • test(uint8_t testPin)

    出力確認用

    testPin : 出力するピン

  • demo()

    デモ

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.