Skip to content

Instantly share code, notes, and snippets.

@beigna
Created November 18, 2013 18:41
Show Gist options
  • Save beigna/7533030 to your computer and use it in GitHub Desktop.
Save beigna/7533030 to your computer and use it in GitHub Desktop.
Recordando C
#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