Your SlideShare is downloading. ×
  • Like
  • Save
Gohan to Flash with JS
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×

Now you can save presentations on your phone or tablet

Available for both IPhone and Android

Text the download link to your phone

Standard text messaging rates apply

Gohan to Flash with JS

  • 723 views
Published

 

Published in Design
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
723
On SlideShare
0
From Embeds
0
Number of Embeds
0

Actions

Shares
Downloads
1
Comments
0
Likes
0

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. FIO 4 x 4 (December, 2010) Designed by Shigeru Kobayashi Funnel I/O (July, 2008) Designed by Shigeru Kobayashi FIO (December, 2009) Designed by Shigeru Kobayashi and SparkFun Arduino Fio (March, 2010) Designed by Shigeru Kobayashi and SparkFun
  • 2. // Funnel import funnel.*; public class JapaninoTest extends Sprite { private var _japanino:Arduino; public function JapaninoTest() { _japanino = new Arduino(Arduino.FIRMATA); // _japanino.addEventListener(FunnelEvent.READY, onReady); // FIRMATA_STRING _japanino.addEventListener(FunnelEvent.FIRMATA_STRING, onMessage); }
  • 3. // Japanino private function onMessage(event:FunnelEvent):void { if (event.message == "!") { // } } private function onButtonPress(event:MouseEvent):void { // 15 x7 var pattern:Array = [ parseInt("0001000", 2), parseInt("0010100", 2), parseInt("0010100", 2), ... parseInt("1111111", 2)]; // Japanino _japanino.sendSysexMessage(0x10, pattern); }