Microbug / MicroBitDAL_SB2_TEST

Fork of MicroBitDALImageRewrite by Joe Finney

MicroBit.cpp

Committer:
finneyj
Date:
2015-04-16
Revision:
1:3e0360107f98
Parent:
0:47d8ba08580f
Child:
4:f998ee705a20

File content as of revision 1:3e0360107f98:

#include "inc/MicroBit.h"


/**
  * Device level Message Bus abstraction
  */

MicroBitMessageBus MicroBit::MessageBus;

void MicroBit::init()
{

}



/**
  * Constructor. 
  * Create a representation of a MicroBit device.
  * @param messageBus callback function to receive MicroBitMessageBus events.
  */
MicroBit::MicroBit() :
  userLED(MICROBIT_ID_USER_LED, MICROBIT_PIN_USER_LED),
  display(MICROBIT_ID_DISPLAY, 5, 5),
  leftButton(MICROBIT_ID_LEFT_BUTTON,MICROBIT_PIN_LEFT_BUTTON)
  
{
    init();
}