Skip to content

Commit

Permalink
remove v3 extensions and references
Browse files Browse the repository at this point in the history
  • Loading branch information
Amerlander committed Sep 26, 2023
1 parent f72c3a9 commit bd44ab8
Show file tree
Hide file tree
Showing 9 changed files with 33 additions and 61 deletions.
5 changes: 4 additions & 1 deletion libs/audio-recording/pxt.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,8 @@
"recording.cpp",
"shims.d.ts"
],
"public": true
"public": true,
"disablesVariants": [
"minidal"
]
}
1 change: 0 additions & 1 deletion libs/core/touchmode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ namespace pins {
//% weight=60
//% blockId=device_touch_set_type block="set %name to touch mode %mode"
//% advanced=true
//% group="micro:bit (V2)"
//% help=pins/touch-set-mode
void touchSetMode(TouchTarget name, TouchTargetMode mode) {
#if MICROBIT_CODAL
Expand Down
9 changes: 0 additions & 9 deletions libs/datalogger/datalogger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,13 @@ namespace datalogger {
//% value.shadow=math_number
//% column.shadow=datalogger_columnfield
//% blockId=dataloggercreatecolumnvalue
//% group="micro:bit (V2)"
//% weight=80 help=datalogger/create-cv
export function createCV(column: string, value: any): ColumnValue {
return new ColumnValue(column, value);
}

//% block="$column"
//% blockId=datalogger_columnfield
//% group="micro:bit (V2)"
//% blockHidden=true shim=TD_ID
//% column.fieldEditor="autocomplete" column.fieldOptions.decompileLiterals=true
//% column.fieldOptions.key="dataloggercolumn"
Expand All @@ -88,7 +86,6 @@ namespace datalogger {
//% blockId=dataloggerlogdata
//% data.shadow=lists_create_with
//% data.defl=dataloggercreatecolumnvalue
//% group="micro:bit (V2)"
//% blockHidden=true
//% weight=100
export function logData(data: ColumnValue[]): void {
Expand Down Expand Up @@ -133,7 +130,6 @@ namespace datalogger {
//% data10.shadow=dataloggercreatecolumnvalue
//% inlineInputMode="variable"
//% inlineInputModeLimit=1
//% group="micro:bit (V2)"
//% weight=100 help=datalogger/log
export function log(
data1: datalogger.ColumnValue,
Expand Down Expand Up @@ -171,7 +167,6 @@ namespace datalogger {
//% blockId=dataloggersetcolumns
//% data.shadow=list_create_with
//% data.defl=datalogger_columnfield
//% group="micro:bit (V2)"
//% blockHidden=true
//% weight=70
export function setColumns(cols: string[]): void {
Expand All @@ -198,7 +193,6 @@ namespace datalogger {
//% blockId=dataloggersetcolumntitles
//% inlineInputMode="variable"
//% inlineInputModeLimit=1
//% group="micro:bit (V2)"
//% weight=70 help=datalogger/set-column-titles
//% col1.shadow=datalogger_columnfield
//% col2.shadow=datalogger_columnfield
Expand Down Expand Up @@ -236,7 +230,6 @@ namespace datalogger {
*/
//% block="delete log||$deleteType"
//% blockId=dataloggerdeletelog
//% group="micro:bit (V2)"
//% weight=60 help=datalogger/delete-log
export function deleteLog(deleteType?: DeleteType): void {
init();
Expand All @@ -250,7 +243,6 @@ namespace datalogger {
*/
//% block="on log full"
//% blockId="on log full"
//% group="micro:bit (V2)"
//% weight=40 help=datalogger/on-log-full
export function onLogFull(handler: () => void): void {
init();
Expand All @@ -264,7 +256,6 @@ namespace datalogger {
//% block="set timestamp $format"
//% blockId=dataloggertoggleincludetimestamp
//% format.defl=FlashLogTimeStampFormat.None
//% group="micro:bit (V2)"
//% weight=30 help=datalogger/include-timestamp
export function includeTimestamp(format: FlashLogTimeStampFormat): void {
init();
Expand Down
3 changes: 1 addition & 2 deletions libs/flashlog/_locales/flashlog-strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,5 @@
"FlashLogTimeStampFormat.None|block": "none",
"FlashLogTimeStampFormat.Seconds|block": "seconds",
"flashlog|block": "flashlog",
"{id:category}Flashlog": "Flashlog",
"{id:group}micro:bit (V2)": "micro:bit (V2)"
"{id:category}Flashlog": "Flashlog"
}
7 changes: 0 additions & 7 deletions libs/flashlog/flashlog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ namespace flashlog {
//% help=flashlog/begin-row
//% parts="flashlog"
//% blockGap=8
//% group="micro:bit (V2)"
int beginRow() {
#if MICROBIT_CODAL
return uBit.log.beginRow();
Expand All @@ -47,7 +46,6 @@ int beginRow() {
//% help=flashlog/log-data
//% parts="flashlog"
//% blockGap=8
//% group="micro:bit (V2)"
int logData(String key, String value) {
if (NULL == key || NULL == value)
return DEVICE_INVALID_PARAMETER;
Expand All @@ -64,7 +62,6 @@ int logData(String key, String value) {
//% help=flashlog/log-string
//% parts="flashlog"
//% blockGap=8
//% group="micro:bit (V2)"
int logString(String value) {
if (NULL == value)
return DEVICE_INVALID_PARAMETER;
Expand All @@ -81,7 +78,6 @@ int logString(String value) {
//% help=flashlog/end-row
//% parts="flashlog"
//% blockGap=8
//% group="micro:bit (V2)"
int endRow() {
#if MICROBIT_CODAL
return uBit.log.endRow();
Expand All @@ -96,7 +92,6 @@ int endRow() {
//% help=flashlog/clear
//% parts="flashlog"
//% blockGap=8
//% group="micro:bit (V2)"
void clear(bool fullErase) {
#if MICROBIT_CODAL
uBit.log.clear(fullErase);
Expand All @@ -113,7 +108,6 @@ void clear(bool fullErase) {
//% help=flashlog/set-timestamp
//% parts="flashlog"
//% blockGap=8
//% group="micro:bit (V2)"
void setTimeStamp(FlashLogTimeStampFormat format) {
#if MICROBIT_CODAL
return uBit.log.setTimeStamp((codal::TimeStampFormat)format);
Expand All @@ -128,7 +122,6 @@ void setTimeStamp(FlashLogTimeStampFormat format) {
//% help=flashlog/set-serial-mirroring
//% parts="flashlog"
//% blockGap=8
//% group="micro:bit (V2)"
void setSerialMirroring(bool enable) {
#if MICROBIT_CODAL
return uBit.log.setSerialMirroring(enable);
Expand Down
2 changes: 1 addition & 1 deletion libs/flashlog/pxt.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@
"minidal"
],
"dependencies": {
"core": "file:../core"
"core": "file:../core",
}
}
21 changes: 7 additions & 14 deletions libs/flashlog/shims.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,44 +12,39 @@ declare namespace flashlog {
**/
//% help=flashlog/begin-row
//% parts="flashlog"
//% blockGap=8
//% group="micro:bit (V2)" shim=flashlog::beginRow
//% blockGap=8 shim=flashlog::beginRow
function beginRow(): int32;

/**
* Populates the current row with the given key/value pair.
**/
//% help=flashlog/log-data
//% parts="flashlog"
//% blockGap=8
//% group="micro:bit (V2)" shim=flashlog::logData
//% blockGap=8 shim=flashlog::logData
function logData(key: string, value: string): int32;

/**
* Inject the given row into the log as text, ignoring key/value pairs.
**/
//% help=flashlog/log-string
//% parts="flashlog"
//% blockGap=8
//% group="micro:bit (V2)" shim=flashlog::logString
//% blockGap=8 shim=flashlog::logString
function logString(value: string): int32;

/**
* Complete a row in the log, and pushes to persistent storage.
**/
//% help=flashlog/end-row
//% parts="flashlog"
//% blockGap=8
//% group="micro:bit (V2)" shim=flashlog::endRow
//% blockGap=8 shim=flashlog::endRow
function endRow(): int32;

/**
* Resets all data stored in persistent storage.
**/
//% help=flashlog/clear
//% parts="flashlog"
//% blockGap=8
//% group="micro:bit (V2)" shim=flashlog::clear
//% blockGap=8 shim=flashlog::clear
function clear(fullErase: boolean): void;

/**
Expand All @@ -61,8 +56,7 @@ declare namespace flashlog {
*/
//% help=flashlog/set-timestamp
//% parts="flashlog"
//% blockGap=8
//% group="micro:bit (V2)" shim=flashlog::setTimeStamp
//% blockGap=8 shim=flashlog::setTimeStamp
function setTimeStamp(format: FlashLogTimeStampFormat): void;

/**
Expand All @@ -72,8 +66,7 @@ declare namespace flashlog {
*/
//% help=flashlog/set-serial-mirroring
//% parts="flashlog"
//% blockGap=8
//% group="micro:bit (V2)" shim=flashlog::setSerialMirroring
//% blockGap=8 shim=flashlog::setSerialMirroring
function setSerialMirroring(enable: boolean): void;
}

Expand Down
7 changes: 1 addition & 6 deletions pxtarget.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
"libs/core",
"libs/core-mini",
"libs/core-mini-dal",
"libs/core-mini-codal",
"libs/v1",
"libs/v2",
"libs/radio",
Expand All @@ -18,11 +17,7 @@
"libs/servo",
"libs/radio-broadcast",
"libs/microphone",
"libs/settings",
"libs/flashlog",
"libs/datalogger",
"libs/color",
"libs/audio-recording"
"libs/color"
],
"cloud": {
"workspace": false,
Expand Down
39 changes: 19 additions & 20 deletions targetconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,24 @@
"CalliTGS3/pxt-calliope-grovePCF85063TP"
],
"approvedRepoLib": {
"tinysuperlab/motionkitv2": {
"tags": [
"Motor"
],
"preferred": true
},
"tinysuperlab/motionkit": {
"tags": [
"Motor"
],
"preferred": true
},
"tinysuperlab/touchkit": {
"tags": [
"Audio"
],
"preferred": true
},
"51bit/colorbit": {
"tags": [
"Display"
Expand Down Expand Up @@ -739,8 +757,7 @@
"makecode-extensions/i2clcd1602": {},
"microsoft/pxt-jacdac": {
"tags": [
"JacDac",
"V3"
"JacDac"
],
"preferred": true
},
Expand Down Expand Up @@ -837,24 +854,6 @@
"Climate"
]
},
"tinysuperlab/motionkitv2": {
"tags": [
"Motor"
],
"preferred": true
},
"tinysuperlab/motionkit": {
"tags": [
"Motor"
],
"preferred": true
},
"tinysuperlab/touchkit": {
"tags": [
"Audio"
],
"preferred": true
},
"calliope-net/i2c-liste": {},
"vengit/pxt-sbrick": {}
},
Expand Down

0 comments on commit bd44ab8

Please sign in to comment.