update to pxt 5 and pxt-common-packages 6 (#934)
* bump pxt * fix build issues * Auto-gen of projects/summary * removing feild editors moved to pxt * various typing fixes * more typing fixes * fixing various typing issues * Start on integration of new pxt * serial number fixes * gc-ify MMap object * Re-build generated files * fix console listeners * clear lf() warnings * More generated files * also auto-generated * Compilation fixes * fix merge * mostly fixing blocks * fix sim * fix field motors * enable a few features * moving to tsx * try to fix edtiro compilation * more defs * removing commands * removing extra $ * fix blockly warning * hiding images * enabling more pxt features * hide images * setup autorun * add lock on target_reset * update deps * return trylock result * updated pxt * rename video section * add alpha channel * upgraded pxt * bump pxt/version * removed alpha ref * var ceanup * don't do major bump
This commit is contained in:
		
				
					committed by
					
						
						Peli de Halleux
					
				
			
			
				
	
			
			
			
						parent
						
							ba94322d4c
						
					
				
				
					commit
					c5cec3a6ba
				
			
							
								
								
									
										9
									
								
								libs/base/enums.d.ts
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										9
									
								
								libs/base/enums.d.ts
									
									
									
									
										vendored
									
									
								
							@@ -22,13 +22,8 @@
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
    declare const enum ValType {
 | 
			
		||||
    Undefined = 0,
 | 
			
		||||
    Boolean = 1,
 | 
			
		||||
    Number = 2,
 | 
			
		||||
    String = 3,
 | 
			
		||||
    Object = 4,
 | 
			
		||||
    Function = 5,
 | 
			
		||||
    declare const enum PerfCounters {
 | 
			
		||||
    GC = 0,
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
// Auto-generated. Do not edit. Really.
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										76
									
								
								libs/base/shims.d.ts
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										76
									
								
								libs/base/shims.d.ts
									
									
									
									
										vendored
									
									
								
							@@ -4,6 +4,18 @@
 | 
			
		||||
 | 
			
		||||
    //% indexerGet=BufferMethods::getByte indexerSet=BufferMethods::setByte
 | 
			
		||||
declare interface Buffer {
 | 
			
		||||
    /**
 | 
			
		||||
     * Reads an unsigned byte at a particular location
 | 
			
		||||
     */
 | 
			
		||||
    //% shim=BufferMethods::getUint8
 | 
			
		||||
    getUint8(off: int32): int32;
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Writes an unsigned byte at a particular location
 | 
			
		||||
     */
 | 
			
		||||
    //% shim=BufferMethods::setUint8
 | 
			
		||||
    setUint8(off: int32, v: int32): void;
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Write a number in specified format in the buffer.
 | 
			
		||||
     */
 | 
			
		||||
@@ -42,6 +54,12 @@ declare interface Buffer {
 | 
			
		||||
    //% start.defl=0 length.defl=-1 shim=BufferMethods::shift
 | 
			
		||||
    shift(offset: int32, start?: int32, length?: int32): void;
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Convert a buffer to string assuming UTF8 encoding
 | 
			
		||||
     */
 | 
			
		||||
    //% shim=BufferMethods::toString
 | 
			
		||||
    toString(): string;
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Convert a buffer to its hexadecimal representation.
 | 
			
		||||
     */
 | 
			
		||||
@@ -72,6 +90,13 @@ declare namespace control {
 | 
			
		||||
     */
 | 
			
		||||
    //% shim=control::createBuffer
 | 
			
		||||
    function createBuffer(size: int32): Buffer;
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Create a new buffer with UTF8-encoded string
 | 
			
		||||
     * @param str the string to put in the buffer
 | 
			
		||||
     */
 | 
			
		||||
    //% shim=control::createBufferFromUTF8
 | 
			
		||||
    function createBufferFromUTF8(str: string): Buffer;
 | 
			
		||||
}
 | 
			
		||||
declare namespace loops {
 | 
			
		||||
 | 
			
		||||
@@ -101,6 +126,12 @@ declare namespace control {
 | 
			
		||||
    //% blockId=control_running_time block="millis (ms)" shim=control::millis
 | 
			
		||||
    function millis(): int32;
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Gets current time in microseconds. Overflows every ~18 minutes.
 | 
			
		||||
     */
 | 
			
		||||
    //% shim=control::micros
 | 
			
		||||
    function micros(): int32;
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Used internally
 | 
			
		||||
     */
 | 
			
		||||
@@ -143,11 +174,54 @@ declare namespace control {
 | 
			
		||||
    //% help=control/device-serial-number shim=control::deviceSerialNumber
 | 
			
		||||
    function deviceSerialNumber(): int32;
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Derive a unique, consistent 64-bit serial number of this device from internal data.
 | 
			
		||||
     */
 | 
			
		||||
    //% blockId="control_device_long_serial_number" block="device long serial number" weight=9
 | 
			
		||||
    //% help=control/device-long-serial-number shim=control::deviceLongSerialNumber
 | 
			
		||||
    function deviceLongSerialNumber(): Buffer;
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     *
 | 
			
		||||
     */
 | 
			
		||||
    //% shim=control::__log
 | 
			
		||||
    function __log(text: string): void;
 | 
			
		||||
    function __log(prority: int32, text: string): void;
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Dump internal information about a value.
 | 
			
		||||
     */
 | 
			
		||||
    //% shim=control::dmesgValue
 | 
			
		||||
    function dmesgValue(v: any): void;
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Force GC and dump basic information about heap.
 | 
			
		||||
     */
 | 
			
		||||
    //% shim=control::gc
 | 
			
		||||
    function gc(): void;
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Force GC and halt waiting for debugger to do a full heap dump.
 | 
			
		||||
     */
 | 
			
		||||
    //% shim=control::heapDump
 | 
			
		||||
    function heapDump(): void;
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Set flags used when connecting an external debugger.
 | 
			
		||||
     */
 | 
			
		||||
    //% shim=control::setDebugFlags
 | 
			
		||||
    function setDebugFlags(flags: int32): void;
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Record a heap snapshot to debug memory leaks.
 | 
			
		||||
     */
 | 
			
		||||
    //% shim=control::heapSnapshot
 | 
			
		||||
    function heapSnapshot(): void;
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Return true if profiling is enabled in the current build.
 | 
			
		||||
     */
 | 
			
		||||
    //% shim=control::profilingEnabled
 | 
			
		||||
    function profilingEnabled(): boolean;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Auto-generated. Do not edit. Really.
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user