You are on page 1of 1

/*

* File: UpdateOLED.h
* Author: eamor
*
* Created on October 30, 2020, 4:26 PM
*/

#ifndef UPDATEOLED_H
#define UPDATEOLED_H

// Event Definitions
#include "ES_Configure.h" /* gets us event definitions */
#include "ES_Types.h" /* gets bool type for returns */
#include "../u8g2Headers/u8g2TestHarness_main.h"
#include "../u8g2Headers/common.h"
#include "../u8g2Headers/spi_master.h"
#include "../u8g2Headers/u8g2.h"
#include "../u8g2Headers/u8x8.h"
#include <proc/p32mx170f256b.h>
#include <sys/attribs.h>
#include <xc.h>

// typedefs for the states


// State definitions for use with the query function
typedef enum
{
InitOLEDState, OLEDTitle, OLEDGame, OLEDEnd, OLEDScoreBoard
}OLEDState_t;

enum UpdateOLEDCaller {projectileID, spaceshipID, enemyshipID, gameoverID, titlescreenID,


scoreboardID};

// Public Function Prototypes

bool InitUpdateOLED(uint8_t Priority);


bool PostUpdateOLED(ES_Event_t ThisEvent);
ES_Event_t RunUpdateOLED(ES_Event_t ThisEvent);
OLEDState_t QueryUpdateOLED(void);
#endif /* UPDATEOLED_H */

You might also like