Commit Graph

74 Commits

Author SHA1 Message Date
Peli de Halleux
37404acbcc
Tilt support in breadboard + display of accelerometer values (#1379)
* remove disable tilt option

* allow tilting when breadboard is up (music speakers)

* display acceleration

* only showing acc values if read
2018-10-11 13:25:52 -07:00
Peli de Halleux
2cf0bba259
various missing float -> int (#1364) 2018-10-09 09:45:10 -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
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
Peli de Halleux
2bcae02493
control.reset support (#1352)
* control.reset support

* updated pxt
2018-10-05 14:51:27 -07:00
Peli de Halleux
2ca97570b4
don't rely on webmidi (#1350)
* don't rely on webmidi

* updated pxt ref
2018-10-04 15:03:02 -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
6239dd6aba handle negative lenght in readBuffer 2018-09-27 08:43:01 -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
47634d52e8
Button event down (#1189)
* support for button_down events

* support for AB button
2018-09-07 08:03:15 -07:00
Guillaume Jenkins
3e744b7a8d
Sim: greyscale display now respects brightness (#1160)
* Sim: greyscale display now respects brightness

* Don't overwrite image

* Don't clamp if brightness is at max
2018-09-04 17:12:01 -04:00
Guillaume Jenkins
ae0a684d2e
Fix showString interval for single character (#1058) 2018-08-09 10:59:47 -04:00
Richard Knoll
49cd197cef
Missing simulator functions and behavior (#1025) 2018-08-02 10:33:05 -07:00
Sam El-Husseini
ce6959377a
Add running time and event value support (#874) 2018-06-18 11:42:35 -07:00
Sam El-Husseini
2e33d9abd0 Fix icons and radio 2018-05-24 11:15:45 -07:00
Peli de Halleux
d8e7044d2a
Servo, edge connector and button pair simulator support (#782)
* add common packages dep

* inlining microservo

* moving more sim

* updated

* bump pxt
2018-05-18 09:28:25 -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
Sam El-Husseini
497c900877 Revert fix for noLeakTracking 2018-04-21 10:34:47 -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
ae40cadf75
Shim for serial.writeBuffer (#624)
* missing shim

* add todo
2018-02-05 21:08:44 -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
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
Peli de Halleux
65bc1f05bc Fix for missing simulator function (#549)
https://github.com/Microsoft/pxt/issues/3193
2017-10-11 13:37:34 -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
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
Etienne BAUDOUX
2f6e1fe277 fixed an issue where the simulator's UI was not rendering correctly on FireFox at loading. This fix is here to prepare the support of accessibility in the simulator. (#486) 2017-08-02 15:21:58 -07:00
Caitlin Hennessy
511dd423d0 Rename 'lastEvent' to 'lastEventValue' to match microbit docs 2017-08-01 17:03:16 -07:00
Caitlin Hennessy
d883bf1db3 Add eventTimestamp and eventValue to pxsim.control 2017-08-01 09:58:16 -07:00
Peli de Halleux
74799c65ac Support for pause/resume of game rendering loop (#476)
* added pause/resume

* don't override displaymode in game engine

* avoid setting light sensing display mode
2017-08-01 08:17:53 -07:00
Peli de Halleux
d1c00ae3ab support for advanced SPI functions 2017-05-25 17:19:25 -07:00
Peli de Halleux
eaa9c09c2e fix serial number of simulator radio messages 2017-05-25 07:10:02 -07:00
Tom Ball
72e95438eb add support for radio groups (#399)
* add groupID to radio

* add groupId

* bump up to new version
2017-05-16 16:19:52 -07:00
Tom Ball
d5596d8a0a fix bug 2017-05-12 14:01:19 -07:00
Michal Moskal
00bf5e52d7 shims.d.ts should never be included in simulator 2017-05-12 12:49:41 +01:00
Peli de Halleux
9af989c13c Uartevent (#393)
* support for uart data event

* updated shims
2017-04-28 01:05:04 -07:00
Peli de Halleux
bd895f43ba Calibrate compass (#392)
* adding 'calibrate-compass' function

* fixing simulator.

* updated docs

* fixing compat test suite with 'calibrate()' function
2017-04-25 10:46:25 -07:00
Richard Knoll
43bad888dc Fix plotImage and showImage behavior in the sim (#387)
* Fix plotImage and showImage behavior in the sim

* Minor fix
2017-04-21 09:01:30 -07:00
Peli de Halleux
f3aa07d175 support for readToSerial in simulator 2017-04-20 00:02:41 -07:00
Tom Ball
d3ff1a689a add initString when string is made known to simulator 2017-04-17 20:12:34 -07:00
Peli de Halleux
1f2027d0f9 flush out serial data when too long (#375) 2017-03-24 09:51:07 -07:00
Peli de Halleux
62b4168531 updated brightness docs 2017-03-24 07:14:37 -07:00
Peli de Halleux
49ecac6332 Showimage (#351)
* support for interval in showImage, showFrame

* added default arg to showFrame
2017-02-03 20:39:18 -08:00
Richard Knoll
72d5e83e5b Exposing pin eventOn method (#349) 2017-01-30 19:19:54 +00:00
Peli de Halleux
f0ac2b7a05 fixing debug message 2017-01-18 16:12:58 -08:00
Peli de Halleux
595eb788b2 removed console.log for pxt.debug 2017-01-17 16:51:21 -08:00
Sam El-Husseini
d2726133a9 Revert "Control event value in simulator (#343)"
This reverts commit 00f4c9cbb3.
2017-01-13 18:04:38 -08:00
chmora
00f4c9cbb3 Control event value in simulator (#343)
* implement pxsim.control.eventValue and pxsim.control.eventTimestamp in the simulator
2017-01-13 16:46:52 -08:00
Peli de Halleux
357436f14d refactored servostate (#341)
* refactored servostate

* Bump pxt-core to 0.10.1
2017-01-12 23:09:53 -08:00
chmora
04dab7df2c One letter showString shouldn't disappear (#338)
* Fix for "One letter showString shouldn't disappear", fixes #798

* miss semicolon
2017-01-10 16:25:40 -08:00
Peli de Halleux
05028c4527 Serial events (#337)
* added "serial->on data received"

* updated info

* updated docs

* added readline to read entire buffer

* lazy initialize of serial buffers

* init async on event

* updated docs
2017-01-10 10:26:44 -08:00