Merge pull request #311 from Microsoft/coregone
merging ksbit.h into pxt.h
This commit is contained in:
		@@ -1,4 +1,4 @@
 | 
			
		||||
#include "ksbit.h"
 | 
			
		||||
#include "pxt.h"
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 
 | 
			
		||||
@@ -1,4 +1,4 @@
 | 
			
		||||
#include "ksbit.h"
 | 
			
		||||
#include "pxt.h"
 | 
			
		||||
 | 
			
		||||
// keep in sync with github/pxt/pxtsim/libgeneric.ts
 | 
			
		||||
enum class NumberFormat {
 | 
			
		||||
 
 | 
			
		||||
@@ -1,4 +1,4 @@
 | 
			
		||||
#include "ksbit.h"
 | 
			
		||||
#include "pxt.h"
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * How to create the event.
 | 
			
		||||
 
 | 
			
		||||
@@ -1,4 +1,4 @@
 | 
			
		||||
#include "ksbit.h"
 | 
			
		||||
#include "pxt.h"
 | 
			
		||||
#include <limits.h>
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -1,4 +1,4 @@
 | 
			
		||||
#include "ksbit.h"
 | 
			
		||||
#include "pxt.h"
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
* Creation, manipulation and display of LED images.
 | 
			
		||||
 
 | 
			
		||||
@@ -1,4 +1,4 @@
 | 
			
		||||
#include "ksbit.h"
 | 
			
		||||
#include "pxt.h"
 | 
			
		||||
 | 
			
		||||
enum class Button {
 | 
			
		||||
    A = MICROBIT_ID_BUTTON_A,
 | 
			
		||||
 
 | 
			
		||||
@@ -1,8 +0,0 @@
 | 
			
		||||
#include "pxt.h"
 | 
			
		||||
#include "ManagedBuffer.h"
 | 
			
		||||
 | 
			
		||||
using namespace pxt;
 | 
			
		||||
MicroBitPin *getPin(int id);
 | 
			
		||||
typedef ImageData* Image;
 | 
			
		||||
typedef BufferData* Buffer;
 | 
			
		||||
 | 
			
		||||
@@ -1,4 +1,4 @@
 | 
			
		||||
#include "ksbit.h"
 | 
			
		||||
#include "pxt.h"
 | 
			
		||||
 | 
			
		||||
enum class DisplayMode_ {
 | 
			
		||||
    //% block="black and white"
 | 
			
		||||
 
 | 
			
		||||
@@ -1,4 +1,4 @@
 | 
			
		||||
#include "ksbit.h"
 | 
			
		||||
#include "pxt.h"
 | 
			
		||||
 | 
			
		||||
enum class DigitalPin {
 | 
			
		||||
    P0 = MICROBIT_ID_IO_P0,
 | 
			
		||||
 
 | 
			
		||||
@@ -9,6 +9,7 @@
 | 
			
		||||
#include "MicroBitImage.h"
 | 
			
		||||
#include "ManagedString.h"
 | 
			
		||||
#include "ManagedType.h"
 | 
			
		||||
#include "ManagedBuffer.h"
 | 
			
		||||
 | 
			
		||||
#define printf(...) uBit.serial.printf(__VA_ARGS__)
 | 
			
		||||
// #define printf(...)
 | 
			
		||||
@@ -295,6 +296,11 @@ namespace pxt {
 | 
			
		||||
  };
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
using namespace pxt;
 | 
			
		||||
MicroBitPin *getPin(int id);
 | 
			
		||||
typedef ImageData* Image;
 | 
			
		||||
typedef BufferData* Buffer;
 | 
			
		||||
 | 
			
		||||
// The ARM Thumb generator in the JavaScript code is parsing
 | 
			
		||||
// the hex file and looks for the magic numbers as present here.
 | 
			
		||||
//
 | 
			
		||||
 
 | 
			
		||||
@@ -12,7 +12,6 @@
 | 
			
		||||
        "enums.d.ts",
 | 
			
		||||
        "shims.d.ts",
 | 
			
		||||
        "pxt-core.d.ts",
 | 
			
		||||
        "ksbit.h",
 | 
			
		||||
        "core.cpp",
 | 
			
		||||
        "pxt-helpers.ts",
 | 
			
		||||
        "helpers.ts",
 | 
			
		||||
 
 | 
			
		||||
@@ -1,4 +1,4 @@
 | 
			
		||||
#include "ksbit.h"
 | 
			
		||||
#include "pxt.h"
 | 
			
		||||
 | 
			
		||||
enum SerialPin {
 | 
			
		||||
    P0 = MICROBIT_ID_IO_P0,
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user