Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SketchCompiler does pre-processing for constants and creates the list…
… of methods
- Loading branch information
Greg Borenstein
committed
Aug 4, 2008
1 parent
b0603cd
commit b63bccb
Showing
8 changed files
with
132 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,13 +1,10 @@ | |||
class BasicBlink < ArduinoSketch | class BasicBlink < ArduinoSketch | ||
|
|||
|
|||
# hello world (uncomment to run) | # hello world (uncomment to run) | ||
|
|
||
output_pin 13, :as => :led | output_pin 13, :as => :led | ||
|
|
||
def loop | def loop | ||
blink led, 100 | blink led, 100 | ||
x = 4 | x = 4 | ||
end | end | ||
|
|||
end | end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,24 +1,26 @@ | |||
class ExternalVariableFu < ArduinoSketch | class ExternalVariableFu < ArduinoSketch | ||
|
|
||
@one = int | @one = int | ||
@two = long | @two = long | ||
@three = unsigned | @three = unsigned | ||
@four = short | @four = short | ||
@five = byte | @five = byte | ||
@six = 1 | @six = 1 | ||
@seven = 1.2 | @seven = 1.2 | ||
@eight = "0x00" | @eight = "0x00" | ||
@nine = "arduino" | @nine = "arduino" | ||
@ten = true | @ten = true | ||
@eleven = false | @eleven = false | ||
@twelve = "1, long" | @twelve = "1, long" | ||
@thirteen = "1, unsigned" | @thirteen = "1, unsigned" | ||
@fourteen = "1, byte" | @fourteen = "1, byte" | ||
@fifteen = HIGH | |||
@sixteen = LOW | |||
@seventeen = ON | |||
@eighteen = OFF | |||
|
|
||
|
def loop | ||
|
delay @six | ||
def loop | end | ||
delay @six | |||
end | |||
|
|
||
end | end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters