Want to create a Gist from your editor, the command line, or the Services menu? Here's how.
This file contains hidden or 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
// I am forking this separately. | |
#import <Foundation/Foundation.h> | |
typedef enum _WRSideIdentifier { | |
kWRSideLeft = 1 << 0, | |
kWRSideRight = 1 << 1, | |
kWRSideBottom = 1 << 2, | |
kWRSideTop = 1 << 3 | |
} WRSideIdentifier |
This file contains hidden or 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
// I am changing this 1 | |
#import <Foundation/Foundation.h> | |
typedef enum _WRSideIdentifier { | |
kWRSideLeft = 1 << 0, | |
kWRSideRight = 1 << 1, | |
kWRSideBottom = 1 << 2, | |
kWRSideTop = 1 << 3 | |
} WRSideIdentifier |
This file contains hidden or 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
P1 -> propeller(:motor) | |
P2 -> led | |
P3, P4 <-> xbee(:serial) | |
P6 <- button(:button) | |
P7 <- thermometer(:analog) | |
when button.pushed | |
led.off | |
end |
NewerOlder