embedded/tp1/exo2.c
2021-02-03 18:37:06 +01:00

22 lines
310 B
C
Executable file

/*
* tutoriel.c
*
* Created: 29/01/2021 09:13:18
* Author : yboujon1
*/
#include <avr/io.h> // necessaire pour l'acces au reg IO
unsigned char a,b,x,y,z;
int main(void)
{
DDRB = 0xFF;
x = 0x6E;
y = 0xA5;
z = ~((x & 0xF0) | (y & 0x0F));
PORTB = ~z;
while (1) {
}
}