Final project repo for ECE 495

Dependencies:   Adafruit_GFX_MBED Adafruit_ILI9341 BurstSPI DS1820 mbed mbed-rtos ltc2991_lib

display/Display.h

Committer:
bdk9
Date:
2016-12-14
Revision:
5:c1c710391df2
Parent:
0:7ba4e0775670

File content as of revision 5:c1c710391df2:


#ifndef DISPLAY_H
#define DISPLAY_H

#include "Adafruit_ILI9341.h"
#include "mbed.h"
#include "Screen.h"


class Display {

public:
    Display(); 
    
    void set_screens(Screen **screens, int num);
    void switch_screen();
    void update();
    void error(char *err);
        
private:
    
    void get_current_screen();
    void get_num_screens();   
    
    int _needs_init;
    Screen **_screens;
    int _num_screens;
    Screen *_cur_screen;
    int _cur_screen_index;
    
};
#endif