山本三七男(たろサ)
LT大会
Wakayama.rb
紹介
Wakayama.rb
毎月、和歌山でRuby勉強会を
行っています。
Wakayama.rb
Wakayama.rb
NT京都出展
NT京都出展
NT京都出展
NT京都出展
Wakayama.rb
ボード
mrubyボード
@SrvPin = 8
def init()
Serial.begin(0, 115200) #USBシリアル通信の初期化
Srv.attach(0, @SrvPin)
Srv.write(0, 0) #0度にする
end
def fileloader()
#USBからのキー入力あり
if(Serial.available(0)>0)then
Sys.fileload()
end
delay(1)
end
init()
while(true) do
led(0)
if(Serial.available(0)>0)then
r = Serial.read(0)
if(r == 0x30)then
led(1)
Srv.write(0, 0)
delay(1600)
Srv.write(0, 130)
delay(1600)
Srv.write(0, 150)
else
Sys.fileload()
end
end
end
https://www.youtube.com/watch?v=XZirqfnjv_0
NT京都出展
10
mrubyボード
Wakayama.rb製
Arduinoと同じ
ようなメソッドを
備えつつ、プロ
グラミングは
rubyで行う。
オープンソース化
ハードウェア
ボード機能
 USBファンクション端子(mini-B)、
 LED 1個、
I/Oピン 20ピン、
 シリアル 3個、
 SPI 1個、
 A/D 4個、
 I2C、PWM、サーボは自由割当て
MCU RX63N
  FlashROM:1Mバイト
  RAM:128Kバイト
  データ用Flash:32Kバイト
ピンアサイン
RESET
GND
5V
3.3V
A0
A1
A3
A2
13
12
11
109
8
7
6
5
4
3
2
19
18
1
0
DA1
Serial1
Serial3
Serial2
SPI
CLK
CS0
SPI CS1
SPI CS2
SPI CS3
P20
P21
PC0
PC1
PC2
P12
P13
P50
P52
P32
P33
P05
P43
P42
P41
P40
PC5
PC7
PC6
PC4
赤文字ピン番は
5Vトレラント
RX63Nピン番号
RX63Nピン番号
14
15
16
17
Serial0
USB
売り切れ間近
4個持っ来ています。
5,0005,0005,000 5,000
ご清聴ありがとう
ございました
4/12(日) Wakayama.rb開催

minami.rb最初で最後のLT大会「Wakayama.rbの紹介」