You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+18-18Lines changed: 18 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -1,22 +1,22 @@
1
1
# Arduino ruby gem
2
2
3
-
Arduino is a prototyping API for Arduino in Ruby. Helps prototype Arduino programs quickly from the computer, without the need to burn to the board frequently.
3
+
This gem is a prototyping API for Arduino in Ruby. Helps prototype Arduino programs quickly from the computer, without the need to burn to the board frequently.
4
4
5
5
#### Setup:
6
6
1. Install the gem: `gem install arduino`
7
-
2. Load arduino.pde onto your Arduino dev board (just once and for all).
7
+
2. Load [arduino.pde](https://github.com/SingAlong/arduino/raw/master/arduino.pde) onto your Arduino dev board (just once and for all).
8
8
3. Import the arduino gem: `require "arduino"`
9
9
10
10
## Methods
11
11
12
-
####Initializing:
12
+
### Initializing:
13
13
14
14
#Arduino.new(port, baudrate)
15
15
board = Arduino.new("/dev/ttyUSB1")
16
16
17
17
Port is something like "/dev/ttyUSB0" on linux and COM*x* (COM1/COM2) on windows. Baudrate is optional. It is 115200 by default.
18
18
19
-
####Setting output pins
19
+
### Setting output pins
20
20
21
21
The output pins must be set explicitly.
22
22
@@ -43,25 +43,25 @@ The output pins must be set explicitly.
43
43
44
44
## Usage example
45
45
46
-
# This is the blink program.
46
+
# This is the blink program.
47
47
48
-
require "arduino"
48
+
require "arduino"
49
49
50
-
#specify the port Baudrate is optional and set to 115200 by default
51
-
myBoard = Arduino.new("/dev/ttyUSB1")
50
+
#specify the port Baudrate is optional and set to 115200 by default
0 commit comments