Adresa de contact: gianina.m.carp@gmail.com
1. LCD Nokia5110:PORTB → PB0 - PB4
2. Buzzer: PORTD
3. Joystick: PORTA → PA5 → coordonata Y
4. Comutatoare: PORTC → GND(-)
X2:(1)-> PC1 -> Pauza
(2)-> PC0 -> Backlight LCD
X4:
(1)-> PC6 -> Level EASY
(2)-> PC5 -> Level MEDIUM
(3)-> PC4 -> Level HARD
(4)-> PC3 -> Redimensionare margini
Am folosit libraria nokia5110 pentru interfatarea cu ecranul LCD.
Programmer's Notepad
Pentru a retine snake-ul efectiv si bucati de hrana am folosit structura coord_t ce are doua componente de tip int, x si y.
struct coord_t {
int x; int y;
}coord_t;