Skip to content

Commit

Permalink
Merge pull request ninjablocks#9 from fablab-robert-houdin/master
Browse files Browse the repository at this point in the history
Add ability to modify pulselength
  • Loading branch information
☃ Elliot Shepherd committed Dec 1, 2015
2 parents a39d78a + 776b253 commit 2e2ebc6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions RPi_utils/send.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ int main(int argc, char *argv[]) {
if (wiringPiSetup () == -1) return 1;
printf("sending systemCode[%s] unitCode[%i] command[%i]\n", systemCode, unitCode, command);
RCSwitch mySwitch = RCSwitch();
if (argv[4] != NULL) mySwitch.setPulseLength(atoi(argv[4]));
mySwitch.enableTransmit(PIN);

switch(command) {
Expand Down

0 comments on commit 2e2ebc6

Please sign in to comment.