Created
November 18, 2013 18:41
-
-
Save beigna/7533030 to your computer and use it in GitHub Desktop.
Recordando C
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
#include <stdio.h> | |
#define PIN1 128 | |
#define PIN2 129 | |
#define PIN3 254 | |
#define PIN4 255 | |
int canal_a[2] = {PIN1, PIN2}; | |
int canal_b[2] = {PIN3, PIN4}; | |
void forward(int canal[]){ | |
printf("(%d, %d)", canal[0], canal[1]); | |
//output_high(canal[0]); | |
//output_low(canal[1]); | |
} | |
void main() | |
{ | |
forward(canal_a); | |
forward(canal_b); | |
return; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment