Snake 430 single-chip microcomputer
2016-08-23
0 0 0
4.0
Other
Earn points
Msp430f169 microcontroller driven LCD12864 snake game, there are four independent buttons, controlling each of the four different directions. Commissioning shall be successful. SCM model United States MSP430f169 TI company type. Various parts of the program are the header files form, easy to understand for beginners. # Include "msp430x16x.h" # include//include//random number LCD pins define # define # define E_0 E_1 P5OUT|=BIT7 P5OUT&=~BIT7 # define RW_1 P5OUT|=BIT6 # define RW_0 P5OUT&=~BIT6 # define RS_1 P5OUT|=BIT5 #define RS_0 P5OUT&=~BIT5 #define PSB_CLR P5OUT &= ~BIT0//PSB low, serial connection #define PSB_SET P5OUT |= BIT0//PSB high and #define RST_CLR P5OUT &= ~BIT1//RST low #define RST_SET P5OUT |= # define UCHAR unsigned char BIT1//RST high a # define uint unsigned int//key pins define # define key_state_0 # define key_state_2 # define key_state_1 0 1 2 unsigned char key_state[4]={0,0}; UCHAR Zi[]={0xd3,0xCE,0xcf,0xb7,0xbd,0xe1,0xca,0xF8};//UCHA
c
Related Source Codes
PClite
0
0
no vote
generic embeded FTP Client
0
0
no vote
UDP Test Demo
0
0
no vote
TMS320F28335 DSP transmits data to EEPROM through
0
0
no vote
TMS320F28335 CAN communication source code
0
0
no vote
No comment