Skip to content

Commit 1cfaec7

Browse files
authored
move jacdac forward (#390)
* move jacdac forward * updates * update and fix compile errors * updates suggested from richard * fix missing }
1 parent acf33c7 commit 1cfaec7

16 files changed

Lines changed: 1417 additions & 5182 deletions

File tree

libs/blocksprj/tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"target": "es5",
44
"noImplicitAny": true,
55
"outDir": "built",
6-
"rootDir": "."
6+
"rootDir": ".",
7+
"types": []
78
}
89
}

libs/core---nrf52/shims.d.ts

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -314,35 +314,5 @@ declare interface SPI {
314314
//% shim=SPIMethods::setMode
315315
setMode(mode: int32): void;
316316
}
317-
declare namespace configStorage {
318-
319-
/**
320-
* Puts an entry in the device storage. Key may have up to 16 characters (bytes).
321-
* @param key the identifier (max 16 characters)
322-
* @param value the data (max 32 characters)
323-
*/
324-
//% shim=configStorage::setBuffer
325-
function setBuffer(key: string, value: Buffer): void;
326-
327-
/**
328-
* Gets an entry from the device storage. Key may have up to 16 characters (bytes).
329-
* @param key the identifier (max 16 characters)
330-
*/
331-
//% shim=configStorage::getBuffer
332-
function getBuffer(key: string): Buffer;
333-
334-
/**
335-
* Removes the key from local storage
336-
* @param key the identifier (max 16 characters)
337-
*/
338-
//% shim=configStorage::removeItem
339-
function removeItem(key: string): void;
340-
341-
/**
342-
* Clears the local storage
343-
*/
344-
//% shim=configStorage::clear
345-
function clear(): void;
346-
}
347317

348318
// Auto-generated. Do not edit. Really.

libs/core---rp2040/dal.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -762,6 +762,8 @@ declare const enum DAL {
762762
CFG_PIN_WIFI_AT_TX = 91,
763763
CFG_PIN_WIFI_AT_RX = 92,
764764
CFG_PIN_USB_POWER = 93,
765+
CFG_SETTINGS_SIZE_DEFL = 95,
766+
CFG_SETTINGS_SIZE = 96,
765767
ACCELEROMETER_TYPE_LIS3DH = 50,
766768
ACCELEROMETER_TYPE_LIS3DH_ALT = 48,
767769
ACCELEROMETER_TYPE_MMA8453 = 56,

libs/core---rp2040/shims.d.ts

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -314,35 +314,5 @@ declare interface SPI {
314314
//% shim=SPIMethods::setMode
315315
setMode(mode: int32): void;
316316
}
317-
declare namespace configStorage {
318-
319-
/**
320-
* Puts an entry in the device storage. Key may have up to 16 characters (bytes).
321-
* @param key the identifier (max 16 characters)
322-
* @param value the data (max 32 characters)
323-
*/
324-
//% shim=configStorage::setBuffer
325-
function setBuffer(key: string, value: Buffer): void;
326-
327-
/**
328-
* Gets an entry from the device storage. Key may have up to 16 characters (bytes).
329-
* @param key the identifier (max 16 characters)
330-
*/
331-
//% shim=configStorage::getBuffer
332-
function getBuffer(key: string): Buffer;
333-
334-
/**
335-
* Removes the key from local storage
336-
* @param key the identifier (max 16 characters)
337-
*/
338-
//% shim=configStorage::removeItem
339-
function removeItem(key: string): void;
340-
341-
/**
342-
* Clears the local storage
343-
*/
344-
//% shim=configStorage::clear
345-
function clear(): void;
346-
}
347317

348318
// Auto-generated. Do not edit. Really.

libs/core---samd/dal.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -678,6 +678,8 @@ declare const enum DAL {
678678
CFG_PIN_WIFI_AT_TX = 91,
679679
CFG_PIN_WIFI_AT_RX = 92,
680680
CFG_PIN_USB_POWER = 93,
681+
CFG_SETTINGS_SIZE_DEFL = 95,
682+
CFG_SETTINGS_SIZE = 96,
681683
ACCELEROMETER_TYPE_LIS3DH = 50,
682684
ACCELEROMETER_TYPE_LIS3DH_ALT = 48,
683685
ACCELEROMETER_TYPE_MMA8453 = 56,

libs/core---samd/shims.d.ts

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -314,35 +314,5 @@ declare interface SPI {
314314
//% shim=SPIMethods::setMode
315315
setMode(mode: int32): void;
316316
}
317-
declare namespace configStorage {
318-
319-
/**
320-
* Puts an entry in the device storage. Key may have up to 16 characters (bytes).
321-
* @param key the identifier (max 16 characters)
322-
* @param value the data (max 32 characters)
323-
*/
324-
//% shim=configStorage::setBuffer
325-
function setBuffer(key: string, value: Buffer): void;
326-
327-
/**
328-
* Gets an entry from the device storage. Key may have up to 16 characters (bytes).
329-
* @param key the identifier (max 16 characters)
330-
*/
331-
//% shim=configStorage::getBuffer
332-
function getBuffer(key: string): Buffer;
333-
334-
/**
335-
* Removes the key from local storage
336-
* @param key the identifier (max 16 characters)
337-
*/
338-
//% shim=configStorage::removeItem
339-
function removeItem(key: string): void;
340-
341-
/**
342-
* Clears the local storage
343-
*/
344-
//% shim=configStorage::clear
345-
function clear(): void;
346-
}
347317

348318
// Auto-generated. Do not edit. Really.

libs/core---samd51/shims.d.ts

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -314,35 +314,5 @@ declare interface SPI {
314314
//% shim=SPIMethods::setMode
315315
setMode(mode: int32): void;
316316
}
317-
declare namespace configStorage {
318-
319-
/**
320-
* Puts an entry in the device storage. Key may have up to 16 characters (bytes).
321-
* @param key the identifier (max 16 characters)
322-
* @param value the data (max 32 characters)
323-
*/
324-
//% shim=configStorage::setBuffer
325-
function setBuffer(key: string, value: Buffer): void;
326-
327-
/**
328-
* Gets an entry from the device storage. Key may have up to 16 characters (bytes).
329-
* @param key the identifier (max 16 characters)
330-
*/
331-
//% shim=configStorage::getBuffer
332-
function getBuffer(key: string): Buffer;
333-
334-
/**
335-
* Removes the key from local storage
336-
* @param key the identifier (max 16 characters)
337-
*/
338-
//% shim=configStorage::removeItem
339-
function removeItem(key: string): void;
340-
341-
/**
342-
* Clears the local storage
343-
*/
344-
//% shim=configStorage::clear
345-
function clear(): void;
346-
}
347317

348318
// Auto-generated. Do not edit. Really.

libs/core---stm32/dal.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -759,6 +759,8 @@ declare const enum DAL {
759759
CFG_PIN_WIFI_AT_TX = 91,
760760
CFG_PIN_WIFI_AT_RX = 92,
761761
CFG_PIN_USB_POWER = 93,
762+
CFG_SETTINGS_SIZE_DEFL = 95,
763+
CFG_SETTINGS_SIZE = 96,
762764
ACCELEROMETER_TYPE_LIS3DH = 50,
763765
ACCELEROMETER_TYPE_LIS3DH_ALT = 48,
764766
ACCELEROMETER_TYPE_MMA8453 = 56,

libs/core---stm32/shims.d.ts

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -314,35 +314,5 @@ declare interface SPI {
314314
//% shim=SPIMethods::setMode
315315
setMode(mode: int32): void;
316316
}
317-
declare namespace configStorage {
318-
319-
/**
320-
* Puts an entry in the device storage. Key may have up to 16 characters (bytes).
321-
* @param key the identifier (max 16 characters)
322-
* @param value the data (max 32 characters)
323-
*/
324-
//% shim=configStorage::setBuffer
325-
function setBuffer(key: string, value: Buffer): void;
326-
327-
/**
328-
* Gets an entry from the device storage. Key may have up to 16 characters (bytes).
329-
* @param key the identifier (max 16 characters)
330-
*/
331-
//% shim=configStorage::getBuffer
332-
function getBuffer(key: string): Buffer;
333-
334-
/**
335-
* Removes the key from local storage
336-
* @param key the identifier (max 16 characters)
337-
*/
338-
//% shim=configStorage::removeItem
339-
function removeItem(key: string): void;
340-
341-
/**
342-
* Clears the local storage
343-
*/
344-
//% shim=configStorage::clear
345-
function clear(): void;
346-
}
347317

348318
// Auto-generated. Do not edit. Really.

libs/core/dal.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -678,6 +678,8 @@ declare const enum DAL {
678678
CFG_PIN_WIFI_AT_TX = 91,
679679
CFG_PIN_WIFI_AT_RX = 92,
680680
CFG_PIN_USB_POWER = 93,
681+
CFG_SETTINGS_SIZE_DEFL = 95,
682+
CFG_SETTINGS_SIZE = 96,
681683
ACCELEROMETER_TYPE_LIS3DH = 50,
682684
ACCELEROMETER_TYPE_LIS3DH_ALT = 48,
683685
ACCELEROMETER_TYPE_MMA8453 = 56,

0 commit comments

Comments
 (0)