merging ksbit.h into pxt.h

This commit is contained in:
Peli de Halleux 2016-11-29 21:35:26 -08:00
parent e0c016fbf4
commit 19fb5ecf01
12 changed files with 15 additions and 18 deletions

View File

@ -1,4 +1,4 @@
#include "ksbit.h" #include "pxt.h"
/** /**

View File

@ -1,4 +1,4 @@
#include "ksbit.h" #include "pxt.h"
// keep in sync with github/pxt/pxtsim/libgeneric.ts // keep in sync with github/pxt/pxtsim/libgeneric.ts
enum class NumberFormat { enum class NumberFormat {

View File

@ -1,4 +1,4 @@
#include "ksbit.h" #include "pxt.h"
/** /**
* How to create the event. * How to create the event.

View File

@ -1,4 +1,4 @@
#include "ksbit.h" #include "pxt.h"
#include <limits.h> #include <limits.h>

View File

@ -1,4 +1,4 @@
#include "ksbit.h" #include "pxt.h"
/** /**
* Creation, manipulation and display of LED images. * Creation, manipulation and display of LED images.

View File

@ -1,4 +1,4 @@
#include "ksbit.h" #include "pxt.h"
enum class Button { enum class Button {
A = MICROBIT_ID_BUTTON_A, A = MICROBIT_ID_BUTTON_A,

View File

@ -1,8 +0,0 @@
#include "pxt.h"
#include "ManagedBuffer.h"
using namespace pxt;
MicroBitPin *getPin(int id);
typedef ImageData* Image;
typedef BufferData* Buffer;

View File

@ -1,4 +1,4 @@
#include "ksbit.h" #include "pxt.h"
enum class DisplayMode_ { enum class DisplayMode_ {
//% block="black and white" //% block="black and white"

View File

@ -1,4 +1,4 @@
#include "ksbit.h" #include "pxt.h"
enum class DigitalPin { enum class DigitalPin {
P0 = MICROBIT_ID_IO_P0, P0 = MICROBIT_ID_IO_P0,

View File

@ -9,6 +9,7 @@
#include "MicroBitImage.h" #include "MicroBitImage.h"
#include "ManagedString.h" #include "ManagedString.h"
#include "ManagedType.h" #include "ManagedType.h"
#include "ManagedBuffer.h"
#define printf(...) uBit.serial.printf(__VA_ARGS__) #define printf(...) uBit.serial.printf(__VA_ARGS__)
// #define printf(...) // #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 ARM Thumb generator in the JavaScript code is parsing
// the hex file and looks for the magic numbers as present here. // the hex file and looks for the magic numbers as present here.
// //

View File

@ -12,7 +12,6 @@
"enums.d.ts", "enums.d.ts",
"shims.d.ts", "shims.d.ts",
"pxt-core.d.ts", "pxt-core.d.ts",
"ksbit.h",
"core.cpp", "core.cpp",
"pxt-helpers.ts", "pxt-helpers.ts",
"helpers.ts", "helpers.ts",

View File

@ -1,4 +1,4 @@
#include "ksbit.h" #include "pxt.h"
enum SerialPin { enum SerialPin {
P0 = MICROBIT_ID_IO_P0, P0 = MICROBIT_ID_IO_P0,