Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created March 10, 2018 00:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/f98cd9799344ba8d3aac4d01c91889cd to your computer and use it in GitHub Desktop.
Save parzibyte/f98cd9799344ba8d3aac4d01c91889cd to your computer and use it in GitHub Desktop.
void apagarLedDe(char barco) {
switch (barco) {
case FRAGATA_1:
bitClear(leds, 0);
break;
case FRAGATA_2:
bitClear(leds, 1);
break;
case DESTRUCTOR_1:
bitClear(leds, 2);
break;
case DESTRUCTOR_2:
bitClear(leds, 3);
break;
case ACORAZADO_1:
bitClear(leds, 4);
break;
case SUBMARINO_1:
bitClear(leds, 5);
break;
case PORTA_AVIONES_1:
bitClear(leds, 6);
break;
}
refrescarLeds();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment