Git Product home page Git Product logo

nervesjp_basis's Introduction

nervesjp_basis

ALGYANハンズオンセミナ@2020/12/27のNervesアプリケーション

ハンズオンのテキスト

connpassイベントページの資料一覧もご参照ください.

必要なもの

Grove Buttonは(P)じゃなくても構いません.また,LEDも緑じゃなくてよいです.AHT20 I2Cはあまり国内流通が無いようで,Seeed BazzarかDigi-Key辺りが良いかと思います.また,発送まで1週間ほど掛かります.

このリポジトリのNervesファームウェアは,今回のハンズオン向けにRasPi4に特化して用意しています.他のRasPiボードで臨みたい方は, NervesJPのSlack か, このリポジトリのIssue にてご相談ください.

microSDカードの準備

まずはElixir/Nervesの開発環境をご用意ください.

ハンズオン本番向けに用意したものは,開発環境の統一と手順の簡単化のために,幾つかのcheatをしています.特にSSH通信用の鍵は共通化しているため,セキュリティ上のリスクがあります.以下のいずれかの環境を構築して使用してください.

最初からやり直したい!自分のSSH鍵で準備してやるぞっ!という方は,下記を実行してファームウェアを作成してください.

$ git clone https://github.com/NervesJP/nervesjp_basis
$ cd nervesjp_basis
$ git checkout v1.0
$ export MIX_TARGET=rpi4
$ mix deps.get
$ mix firmware

_build/rpi4_dev/nerves/images/nervesjp_basis.fw というのがハンズオンのスタートラインとなっているNervesファームウェアです.こちらをmicroSDカードに書き込みます.

dev-containerの方は,ホストPC上で,fwupを実行します.
Windowsの方は,PowerShellまたはコマンドプロンプトを 「管理者として実行する」 で開いて,MacやLinuxの方は普通にターミナルを開いて,下記を実行してください.

$ fwup _build/rpi4_dev/nerves/images/nervesjp_basis.fw

WSL 2やmacOSでネイティブに環境構築された方は,これだけです.

$ mix burn

Release履歴

  • v1.0: ALGYANハンズオン向けの参加者に配布したファームウェアのバージョン
  • v1.1: 応用編の内容込みのバージョン

nervesjp_basis's People

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

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.