My 2645 project Chenyu Li 200985958
main.h File Reference
Header file containing functions prototypes, defines and and global variables. More...
Go to the source code of this file.
Data Structures | |
| struct | JoyStick |
| struct for Joystick More... | |
Namespaces | |
| namespace | N5110_lcd |
VCC,SCE,RST,D/C,MOSI,SCLK,LED. | |
| namespace | buzzer |
Can also power (VCC) directly from VOUT (3.3 V) - Can give better performance due to current limitation from GPIO pin. | |
| namespace | button |
set PwmOut out as the buzzer | |
| namespace | buttonjoystick |
set button as an interrupt in | |
| namespace | xPot |
connections for joystick | |
| namespace | yPot |
connections for joystick | |
Enumerations | |
| enum | DirectionName |
Serial for debug. More... | |
Functions | |
| Serial | serial (USBTX, USBRX) |
| set 'enermy' as a ticker (not used currently) | |
| void | calibrateJoystick () |
| initialize the position of the joystick. | |
| void | updateJoystick () |
| read the current joystick value. | |
| void | button_isr () |
| return back the button_isr value. | |
Variables | |
| Ticker | pollJoystick |
| connections for joystick | |
| Ticker | bullet |
| timer to regularly read the joystick | |
| Ticker | enermy |
| set 'bullet' as a ticker (not used currently) | |
| int | printFlag = 0 |
| create struct variable | |
| int | enermyFlag = 0 |
| int | bulletFlag = 0 |
| int | status = 1 |
| bool | wall = false |
| set the original value of "g_button_flag" equals to 0. | |
Detailed Description
Header file containing functions prototypes, defines and and global variables.
Shows examples of creating Doxygen documentation. Revision 1.0.
Definition in file main.h.
Enumeration Type Documentation
| enum DirectionName |
Function Documentation
| void calibrateJoystick | ( | ) |
| Serial serial | ( | USBTX | , |
| USBRX | |||
| ) |
set 'enermy' as a ticker (not used currently)
Variable Documentation
| int bulletFlag = 0 |
| int enermyFlag = 0 |
| Ticker pollJoystick |
| int printFlag = 0 |
Generated on Tue Jul 12 2022 18:49:12 by
1.7.2