Skip to content

Commit

Permalink
Update pxt.json, main.blocks, main.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
KalbeAbbas committed Nov 27, 2020
1 parent 8f24cdd commit a1bda91
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 13 deletions.
Binary file added .github/makecode/blocks.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .github/makecode/blocksdiff.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 1 addition & 4 deletions main.blocks
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
<xml xmlns="http://www.w3.org/1999/xhtml">
<block type="pxt-on-start"></block>
<block type="device_forever"></block>
</xml>
<xml xmlns="https://developers.google.com/blockly/xml"><block type="pxt-on-start" id="Rn1.XTO=CQR*E#f!oO{Z" x="0" y="0"/><block type="device_forever" id="_)I[,5W,uXLc$Z^Flz+i" x="205" y="0"/><block type="sg35_onReceivedData" id="F.C-szLV#O4o8hI_O:=!" x="104" y="238"><value name="HANDLER_DRAG_PARAM_receivedPM1"><shadow type="argument_reporter_number" id="{/PKg,n8GZc796L$S:y,"><field name="VALUE">receivedPM1</field></shadow></value><value name="HANDLER_DRAG_PARAM_receivedPM25"><shadow type="argument_reporter_number" id="DcYgk3~=c{b@Q)dl1LND"><field name="VALUE">receivedPM25</field></shadow></value><value name="HANDLER_DRAG_PARAM_receivedPM10"><shadow type="argument_reporter_number" id="(#W|kBKHM%7,@ZBmT~NM"><field name="VALUE">receivedPM10</field></shadow></value><statement name="HANDLER"><block type="device_show_number" id="zou;Ma$yDt|1k=2ps4~V"><value name="number"><shadow type="math_number" id="P+O[uO(hOn$.@f[tltPO"><field name="NUM">0</field></shadow><block type="argument_reporter_number" id="8S#N.^bpzfYD;c,*`~e9"><field name="VALUE">receivedPM1</field></block></value></block></statement></block></xml>
5 changes: 0 additions & 5 deletions main.ts
Original file line number Diff line number Diff line change
@@ -1,5 +0,0 @@
sg35.onReceivedData(function (receivedPM1, receivedPM25, receivedPM10) {
basic.showNumber(receivedPM1)
basic.showNumber(receivedPM25)
basic.showNumber(receivedPM10)
})
9 changes: 5 additions & 4 deletions pxt.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,15 @@
"license": "MIT",
"dependencies": {
"core": "*",
"radio": "*"
"radio": "*",
"microphone": "*"
},
"files": [
"README.md",
"main.blocks",
"main.ts",
"ix03.ts",
"sg35.ts"
"ix03.ts",
"sg35.ts"
],
"testFiles": [
"test.ts"
Expand All @@ -21,5 +22,5 @@
"supportedTargets": [
"microbit"
],
"preferredEditor": "blocksprj"
"preferredEditor": "tsprj"
}

1 comment on commit a1bda91

@KalbeAbbas
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Difference between blocks

Please sign in to comment.