Commit Graph

606 Commits

Author SHA1 Message Date
Sam El-Husseini
a069e6f46e
Update icons to have a transparnet OFF colour (#1360) 2018-10-08 10:34:22 -07:00
Peli de Halleux
6209f0cc63
scratch like broadcast api (#1358)
* scratch like broadcast api

* always register handler

* adding docs

* added icon

* updated block name

* adding DAL support "radio.raiseEvent"

* typo

* implemented using radiobus

* adding docs

* adding raise event block

* updated shims

* updated pxt
2018-10-08 09:46:23 -07:00
Peli de Halleux
ae3d3a37f9 hide midi_Send 2018-10-07 21:27:46 -07:00
Peli de Halleux
f2435df722
BLE UART Buffer methods (#1353)
* adding simulator

* attempt at handling size

* correct ref counting

* defense is on

* handle read < 0
2018-10-05 15:25:18 -07:00
Sam El-Husseini
c14108de99
Update icons making the white boxes bigger so it's more readable. (#1354) 2018-10-05 15:09:44 -07:00
Peli de Halleux
9002edbb22
Servo library support (#1343)
* ateempt at bringin servos

* basic plumbing

* avoid math map duplicate

* missing parts annontation

* pretify parts

* extend appcompat layer

* updated strings

* more compat layer

* annotations

* don't rely on webmidi

* updated pxt ref

* bump pxt

* adding whenUsed

* updated v1 readme

* more pins

* more pins

* compress the parts definition

* update common packages
2018-10-05 11:09:08 -07:00
Peli de Halleux
22a60db57f format pxtparts.json to simplify integration with common packages 2018-10-04 10:22:51 -07:00
Peli de Halleux
ad6c8ce271
use new shadow to support time picker on pause (#1346) 2018-10-04 09:22:45 -07:00
Peli de Halleux
1a9235e333
MIDI support in simulator (#1332)
* gluing to support MIDI devices in the simulator

* sim support for midi

* simplify interface

* ensure helper function does not show up in TS

* bump pxt
2018-10-03 11:32:29 -07:00
Peli de Halleux
6b94222a3e
regenerated dal.d.ts for DAL2.1 (#1330)
* guard eddystone apis

* regenerated constants
2018-10-02 11:31:21 -07:00
Sam El-Husseini
3e5c5929d5
Update a couple of colours that were missed (#1326) 2018-10-02 09:32:08 -07:00
Sam El-Husseini
9bc6d994a8
Update block pallette slightly to more saturated colours in order to increase constrast between block color and stroke color (#1323) 2018-10-01 14:39:51 -07:00
Sam El-Husseini
9cd0d62baa
Update block gaps to account for extra space taken by event blocks (#1304) 2018-09-26 16:27:32 -07:00
Sam El-Husseini
d8d3d70511 Update background of show icon images to be secondary color of basic blocks. Add update script. (#1303) 2018-09-26 15:45:53 -07:00
Peli de Halleux
088c95661b
missing platform.h from pxt.json (#1288) 2018-09-24 13:42:08 -07:00
Peli de Halleux
eed66868a9
explictely set radio default power to 6 (#1286) 2018-09-24 10:16:03 -07:00
Peli de Halleux
abb117eab5
dal6 integration v1 (#1227)
* dal6 integration v1

* updating stack size

* fix gatt_table_size option
2018-09-13 10:23:05 -07:00
Peli de Halleux
fbb23feda7
Friendlier download dialog + pairing (#1212)
* first shot at new download

* fixing image

* handle column width

* fixed colors

* updated images

* PR feedback
2018-09-11 20:50:52 -07:00
Guillaume Jenkins
c499b7b54d
Set DAL tag to dal-integration-5 (v1) (#1200)
* Set DAL tag to dal-integration-5 (v1)

* Add partial flashing config

* Move partial bluetooth flashing config to optional
2018-09-10 15:35:06 -04:00
Michał Moskal
20500fb9ae
Pull common files from pxt-common-packages (#1165) 2018-09-10 10:11:41 -07:00
Peli de Halleux
1767e3d10c
always show BLE pairing options in settings dialog (#1187) 2018-09-07 08:02:44 -07:00
Guillaume Jenkins
3b85710bd7 Fix radio reference snippets (#1185) 2018-09-06 14:37:40 -07:00
Guillaume Jenkins
239952aff5
C++: Round towards positive infinity (#1134) 2018-08-28 10:59:21 -04:00
Guillaume Jenkins
03ba8141ab
Reuse radio translations for new APIs (#1133) 2018-08-27 16:24:10 -04:00
Guillaume Jenkins
191de7a60c Update strings 2018-08-22 14:43:31 -04:00
Richard Knoll
51a485580b
Adding shadow block to serial write buffer (#1111) 2018-08-21 10:25:59 -07:00
Guillaume Jenkins
f8342a357c Some updated strings were not commited 2018-08-16 13:27:19 -04:00
Guillaume Jenkins
da15752720
Slightly adjust non-advanced category weights (#1091) 2018-08-14 13:26:22 -04:00
Richard Knoll
4c28160a34
Fixing authoring on a few APIs for Monaco toolbox (#1084) 2018-08-14 10:18:23 -07:00
Guillaume Jenkins
69efc80bb9
Remove unwanted Math ops (#1079)
* Remove unwanted Math ops

* Also add asin, acos and atan
2018-08-14 12:04:02 -04:00
Guillaume Jenkins
eebaf91f6e
Add math functions to cpp layer (#1069) 2018-08-09 15:54:51 -04:00
Guillaume Jenkins
7b9ea6f2d5
Switch to printChar() so interval is honored (#1060)
Switch to printChar() so interval is honored
2018-08-09 10:45:46 -04:00
Richard Knoll
9aac836ae2
Fix default value for note block (#1053) 2018-08-08 14:51:00 -07:00
Guillaume Jenkins
3a2eb69483
Add partial row in imageDropdown to indicate scrolling (#1052) 2018-08-07 17:55:42 -04:00
Richard Knoll
68361499a2
Fixing blink on sprites (#1047) 2018-08-06 14:34:04 -07:00
Richard Knoll
b03c984c38
Fixing atan2 typo in arguments (#1045) 2018-08-06 11:31:33 -07:00
Guillaume Jenkins
2700a77cae
Add auto toString for various APIs (#1033) 2018-08-02 16:30:02 -04:00
Richard Knoll
6884b2bedf
Fixing parseInt() (#1022) 2018-08-01 12:45:56 -07:00
Michał Moskal
57f9cbed9d Initialize our random generator with codal's (#1021) 2018-08-01 13:18:34 -04:00
Michał Moskal
b0eee4afe5
Convert int-to-string directly, without double, see #999 (#1009) 2018-07-31 14:41:31 -07:00
Guillaume Jenkins
8c1b9b72b2
Fix randomBool and game of life (#1008) 2018-07-31 16:36:52 -04:00
Galen Nickel
f5c44a3d4b
Update 'radio' docs for v1 (#937) 2018-07-09 11:17:32 -07:00
Peli de Halleux
8cb951f924
incorrect logic (#876) 2018-06-18 14:28:26 -07:00
Peli de Halleux
e6c38b85b0
Display rounded number in basic.showNumber (#856)
* use roundWithPrecision in show num er

* fixng typing error

* upgraded pxt version
2018-06-04 22:31:04 -07:00
Peli de Halleux
4619dbdd89
plot bar graph handling floating point values (#855)
* handling floating point values

* removelogging
2018-06-04 16:47:26 -07:00
Peli de Halleux
3b27c74084 added PXT_CREATE_BUFFER macro 2018-06-04 15:12:59 -07:00
Peli de Halleux
56252de874
buffer data vs payload app compat fix (#854)
* buffer data vs payload app compat fix

* added PXT_MICROBIT_TAGGED_INT
2018-06-04 14:37:26 -07:00
Peli de Halleux
c9b269e2ce tweak to helpers 2018-06-04 11:47:12 -07:00
Sam El-Husseini
6f148c14e0 Fix randomInt 2018-06-01 11:42:38 -07:00
Sam El-Husseini
cabda63108
Move showNumber to TS and call showString (#829) 2018-05-31 10:04:51 -07:00
Michał Moskal
cad13785e2 Implement tagged integers in C++ (#813)
* Start on the C++ conversion for tagged ints
2018-05-29 15:55:58 -07:00
Sam El-Husseini
c20efd5942
Add field gesture and field images for the different gestures (#803) 2018-05-24 17:09:08 -07:00
Sam El-Husseini
af766cedbc
Add builtin package images (#804) 2018-05-24 17:08:54 -07:00
Sam El-Husseini
2e33d9abd0 Fix icons and radio 2018-05-24 11:15:45 -07:00
Sam El-Husseini
e7e6992524 Add generator for icon images. Generate icons and use them for the icon field editor. 2018-05-21 10:07:05 -07:00
Sam El-Husseini
3112e442ec
Use jres for icon images (better for offline) (#776) 2018-05-15 18:36:36 -07:00
Sam El-Husseini
03f9830ca9 Custom handler key 2018-05-14 13:50:39 -07:00
Sam El-Husseini
d2858f122f
Add radio methods to replace the radio mutator (#773)
* Add radio methods to replace the object destructing behaviour
2018-05-14 13:18:19 -07:00
Sam El-Husseini
66b320d633 Fix Actions 2018-05-14 11:05:47 -07:00
Sam El-Husseini
442722f12e Merge branch 'master' into vnext 2018-05-09 10:58:01 -07:00
Sam El-Husseini
8957bf0647 Remove td, remove field matrix, update radio blocks. Revert image literal changes. 2018-05-09 10:56:48 -07:00
Galen Nickel
12eee456df Change the 'deviceName' description (#761) 2018-05-02 13:31:06 -07:00
Peli de Halleux
6081679ec7
adding fp math operators (#753)
* adding fp math operators

* updated locs files
2018-04-25 08:17:34 -04:00
Sam El-Husseini
e7c75cd88a Hack to fix random temporarily 2018-04-21 12:09:43 -07:00
Sam El-Husseini
3884f8cac6 Better random Boolean 2018-04-21 10:57:49 -07:00
Sam El-Husseini
6ac64f0e3d Update tests. remove converted test for the time being 2018-04-21 10:45:02 -07:00
Sam El-Husseini
6ea0c50472 Initial target repo setup to move to master (v3.10) 2018-04-21 10:25:43 -07:00
Peli de Halleux
1fe74c6e01 bumped pxt 2018-03-27 20:47:02 -07:00
Philipp Henkel
8be29202aa Fix pointer check in serial redirect (#707) 2018-03-13 19:24:10 -07:00
Galen Nickel
ddc9aeae35 Add some descriptive info to serial docs (#704)
* Local commit

* Add some descriptive info to serial docs

* Example typo

* Tiny edit
2018-03-09 13:14:24 -08:00
Peli de Halleux
26a394ae71 fixing plotled to use writeLine 2018-03-08 13:11:13 -08:00
Peli de Halleux
29de28a738
Added serial->write numbers to support CSV data generation (#699)
* support for serial write numbers

* moving down the list

* formatting

* fixing example typo
2018-03-08 08:33:02 -08:00
bosnivan
f9354977f7 Fixed comment for onEvent() (#688) 2018-03-05 16:31:43 -07:00
Peli de Halleux
cc2d8b0b6a
pad serial.writeLine to the 32byte boundary (#676)
* pad writeline with zeros

* added padded for serial writline
2018-02-25 09:15:15 -08:00
Peli de Halleux
c282b5d636
remove outdated locales files (#670) 2018-02-20 22:17:35 -08:00
Peli de Halleux
3dd45c6f64
Clearer message for devices blocks (#669) 2018-02-20 22:00:28 -08:00
Peli de Halleux
d13115e3b5 updated shims 2018-01-30 10:28:02 -08:00
Peli de Halleux
07a578831c
support for buffer packet type (#608)
* support for buffer packet type

* updated description

* updated signature

* added note on json encoding

* adding sendNumbers

* cleanup

* removing 'sendnumbers'
2018-01-30 10:11:12 -08:00
Galen Nickel
79018d4f00 Enable help for serial readString() (#609) 2018-01-30 08:54:42 -08:00
Galen Nickel
aee9b84b31
Do some edits for serial redirect (#605)
* Do some edits for serial redirect

* Broken links
2017-12-15 16:46:16 -08:00
Peli de Halleux
b45f456736
Redirecttousb (#604)
* add block to redirect back to USB

* added docs

* bump minor version
2017-12-14 06:44:48 -08:00
Michal Moskal
b673108852 Add functions needed for switch ref-counting fix 2017-12-11 14:48:34 +00:00
Peli de Halleux
26680823ff
Fixing serial buffer docs (#600)
* Fixing serial buffer docs

* updated shims
2017-12-11 00:37:57 -08:00
Peli de Halleux
d29cc49669 updated strings 2017-10-30 08:44:20 -07:00
Richard Knoll
b67ff733ab Move forever and runinbackground after onstart (#555) 2017-10-24 13:10:54 -07:00
Peli de Halleux
09471f84de updated strings 2017-10-16 10:01:41 -07:00
Shigeru KANEMOTO
51a42f7380 Apply gridpicker to "spi set pins" block. (#552)
Just forgot to include in the pull request https://github.com/Microsoft/pxt-microbit/pull/550
2017-10-16 09:50:53 -07:00
Shigeru KANEMOTO
50e72c76db Apply gridpicker (#550)
Apply grid picker to "icon image" and "serial redirect" blocks.
2017-10-15 22:28:51 -07:00
Peli de Halleux
cdbc34550a Various fixes (#548)
* adding running time micros

* support for system micro seconds

* restore display mode after plotting sprites

* bump pxt
2017-10-11 11:31:07 -07:00
Michał Moskal
9382535d29 Add check in RefObject::decr(); Fix decr() in removeAt see https://github.com/Microsoft/pxt/issues/3093 (#544) 2017-10-01 14:39:25 -07:00
Peli de Halleux
fa8dfd1dc3 Game score fix (#543)
* guard against spurious 'add score' animations

* don't render sprites while background animation

* switch to bw while doing score animation

* clean up display mode

* updated enum declarations
2017-09-25 10:54:40 -07:00
Sam El-Husseini
4459445b8c Fix accessibility sim regression when setting pin ARIA text. Fixes pxt#2894 (#533) 2017-09-10 22:38:01 -07:00
Peli de Halleux
7a8a1ec7ab updated array strings 2017-09-07 14:10:54 -07:00
Sam El-Husseini
c040de6134 Fixed begin melody API so it doesn't complain about a compiler error, and uses the default value. (#515) 2017-08-23 11:38:47 -07:00
Peli de Halleux
3180229bce updated docs on plotBrightness (#509) 2017-08-18 08:15:43 -07:00
ganicke
6110abc17f Enable more help topics for game API. 2017-08-10 12:01:20 -07:00
Peli de Halleux
42a4401f8f updated ledBrightness block template 2017-08-07 11:54:24 -07:00
Peli de Halleux
e7c1915076 support for led.plotBrightness (#494)
* support for led.plotBrightness

* fixing c++ build

* fixed blockid
2017-08-07 11:47:43 -07:00
Peli de Halleux
5e7cba3882 ensure game library runs in greyscale 2017-08-02 15:00:25 -07:00
Peli de Halleux
54eb14abdb fix for https://github.com/Microsoft/pxt/issues/2613 2017-08-01 08:21:22 -07:00