GithubHelp home page GithubHelp logo

tks / robosys2019_driver Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 23 KB

robosys2019にて作成したデバイスドライバ

License: GNU General Public License v3.0

Makefile 4.11% C 95.89%
robosys2019

robosys2019_driver's Introduction

千葉工業大学先進工学部の2019年度のロボットシステム学の課題1

デバイスドライバ製作

簡易的なLED信号機をコントロールする.

https://youtu.be/ZT8Q45xaxX0

参考

課題の製作にあたり,以下の講義スライド上のコードの一部を利用しています.

https://github.com/ryuichiueda/robosys2019

環境

raspberry pi 3B+

raspbian (4.19)

実行方法

LEDと200Ω程度の抵抗を接続する. GPIOの配置はmyled.cを参照してください.

$ make                          #プログラムのコンパイル
$ sudo insmod myled.ko          #コンパイルしたデバイスドライバのインストール 
$ sudo chmod 666 /dev/myled0  
$ echo 0 > /dev/myled0          #車側の信号機を緑に
$ echo 1 > /dev/myled0      #車側の信号機を赤に

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.