This repository has been archived on 2024-01-06. You can view files and clone it, but cannot push or open issues or pull requests.
justhomework/MCU/Final_Design/snake.h

27 lines
267 B
C
Raw Normal View History

2022-05-07 05:56:47 +00:00
#include <reg52.h>
#include <stdio.h>
#define bool char
typedef enum
{
N=0,U, D, L, R
} MOVE_STATE;
struct DOT
{
unsigned char x;
unsigned char y;
} ;
struct BODY
{
dot d;
MOVE_STATE ms;
char id;
};
typedef struct BODY Body;
typedef struct DOT Dot;