Initial publish

Dependencies:   mbed

Fork of el17dg by Dmitrijs Griskovs

main/main.h

Committer:
Noximilien
Date:
2019-05-07
Revision:
40:e3bbda7444fa
Parent:
37:6a2bf4488022

File content as of revision 40:e3bbda7444fa:

#ifndef MAIN_H
#define MAIN_H

#include "mbed.h"
#include "N5110.h"
#include "Gamepad.h"

/** 
 * Global variable readings from the gamepad are shared for all the files to use.
 */
extern N5110 lcd;
extern Gamepad gamepad;
extern AnalogIn pot;
extern AnalogIn x_dir;
extern AnalogIn y_dir;

static const int fps = 10;

#define DG_PRINT_ENABLED 0

#if DG_PRINT_ENABLED
#define DG_PRINTF(...) printf(__VA_ARGS__)
#else
#define DG_PRINTF(...) 
#endif



#endif