Forked from: monakaz's LEDをコントロールしちゃおう☆ View Diff (66)

Digital IO

kotobuki

License: MIT License

Fork
29
Fav
0
View
9401
  • Play

Fullscreen

Smart Phone

Fork tree

  • Readme
  • JavaScript 34 lines
  • HTML 37 lines
  • CSS 7 lines

Connection

  • Digital IO 0: a Button
  • Digital IO 1: a LED

What will happen?

  • Press/release a button connected to a Grove extension board will change Digital IO 0 on a screen
  • On/off Digital IO 1 on a screen will turn on/off a LED connected to a Grove extension board

Let's try!

  • Replace a button with a touch sensor
  • Replace a LED with a vibration motor

接続

  • Digital IO 0:ボタン
  • Digital IO 1:LED

どうなるか

  • Grove拡張ボードに接続したボタンを操作すると画面上のDigital IO 0が変化する
  • 画面上のDigital IO 1をオン/オフするとGrove拡張ボードに接続したLEDがオン/オフする

試してみよう

  • ボタンをタッチセンサと交換する
  • LEDを振動モータと交換する
  • Digital IO
  • Digital IO

play

Complete!

Description What kind of game?

Control Device

jsdo.it websocket controller

Mouse

keyboard

smartphone

Fullscreen

Default Panel

Size

  • Width: px
  • Height: px

code

QR Code

Discussion

Questions on this code?

Tags

Forked

sort by