Projet interfaçage en licence professionnelle MECSE à l'iut de Cachan. Réalisé sur une carte STM32F746G-DISCO. Capteur utilisé: l'accéléromètre MMA8451Q piloté en i2c via les PIN PB_9 et PB_8 de la carte. Les Pin d'interruption I1 et I2 de la carte ne sont pas utilisé. Lien du capteur: https://www.gotronic.fr/art-accelerometre-3-axes-mma8451-22164.htm Datasheet du capteur : https://www.gotronic.fr/pj-1230.pdf

Dependencies:   TS_DISCO_F746NG mbed LCD_DISCO_F746NG BSP_DISCO_F746NG MMA8451Q

Réalisé sur une carte STM32F746G-DISCO. Capteur utilisé: l'accéléromètre MMA8451Q piloté en i2c via les PIN PB_9 et PB_8 de la carte. Les Pin d'interruption I1 et I2 de la carte ne sont pas utilisé.

Lien du capteur: https://www.gotronic.fr/art-accelerometre-3-axes-mma8451-22164.htm Datasheet du capteur : https://www.gotronic.fr/pj-1230.pdf

draw.h

Committer:
jgaltier98
Date:
2019-06-04
Revision:
0:88b1d5275ad7

File content as of revision 0:88b1d5275ad7:

#include "mbed.h"
#include "LCD_DISCO_F746NG.h"

#define bodyX 20
#define bodyY 10
#define lenght_nose 15
#define height_nose 5
#define height_wing 8
#define lenght_wing 15

extern LCD_DISCO_F746NG lcd;
extern short lenght_X_hitbox;
extern short lenght_Y_hitbox;

void draw_hitbox_ship(short lenght_X, short lenght_Y);
void draw_star(short X, short Y);
void draw_fire(short X,short Y,short fire);
void draw_planet(short X, short Y);
void draw_load(short X, short Y);
void draw_hit(short X,short Y);
void draw_ship(short posX,short posY, bool hitbox, short fire);
bool draw_line(short posX, short posY, short lenght,short posX_ship, short posY_ship);