Error as described in MBs email to MS

Dependencies:   SDFileSystem app epson mbed msp430 pl tests

pageoled.h

Committer:
marcbax
Date:
2018-01-11
Revision:
1:5874c1a074a7
Parent:
0:c643d398cdb6

File content as of revision 1:5874c1a074a7:

//
// Filename: pagedoled.h
//
// Flexbook page for page A3.
//

// include guards
#ifndef PAGEOLED_H
#define PAGEOLED_H

#include "page.h"

#include "mbed.h"

namespace Flexbook
{

struct SensorData;

class PageOLED : public Page
{
public:
    // Constructor needs to be explicit.
    explicit PageOLED();

    // Destructor.
    virtual ~PageOLED();
    
    // Write data to OLED.
    void Write(uint64_t writedata);
    
    uint64_t Translate(char b1, char b2, char b3, char b4, char b5, char d1);

    void SensorPoll(const SensorData &sensordata);
    void DiceRoll(const int dicenr);
    
    virtual void HandlePageActions ();

private:
    // Disable the copy constructor.
    PageOLED(const PageOLED &);

    // Disable assignment.
    PageOLED &operator=(const PageOLED &);
    
    DigitalOut data;
    DigitalOut clock;
    DigitalOut strobe;
    DigitalOut enable;
};

} // End Flexbook namespace.

#endif // PAGEOLED_H