This is a port of the mruby/c tutorial Chapter 03 to the mbed environment.

Dependencies:   mbed

For details, refer to the following.

http://www.s-itoc.jp/activity/research/mrubyc/mrubyc_tutorial/436

Note:There is a change in rtt0.h from the original source in the mruby/c. It was necessary for inclusion in C ++ source.

Revision:
0:33feccbba3ff
diff -r 000000000000 -r 33feccbba3ff sample2.rb
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sample2.rb	Wed Feb 15 01:03:35 2017 +0000
@@ -0,0 +1,4 @@
+while(true)
+	$sw1 = sw1_read()
+end
+