Commit Graph

277 Commits

Author SHA1 Message Date
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
Sam El-Husseini
b622393828 Respect brightness for bw images, add new glow on images. Brightness affects size and opacity of led. (#492) 2017-08-02 22:02:48 -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
8e426eddb7 Merge pull request #485 from Microsoft/bug_1557_fix
Add 'user-select: none' to sim elements that shouldn't be draggable
2017-08-02 11:47:20 -07:00
Caitlin Hennessy
0b0f6f0eaa Add .no-drag class to eliminate duplication 2017-08-02 11:43:58 -07:00
Caitlin Hennessy
25d17231ac Add 'user-select: none' to sim elements that shouldn't be draggable 2017-08-02 10:30:14 -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
Sam El-Husseini
a846d121cb Fix A+B selection issue on click. Fixes Microsoft/pxt#2373 2017-06-30 01:41:48 -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
Peli de Halleux
1cf38d92ef support for high contrast in simulator (#386)
* support for high contrast in simulator

* updated logic to find afterProgramPage.
2017-04-19 23:44:47 -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
Sam El-Husseini
d0ecafcf7a Using gridpicker for icons (#365)
* Use the grid picker custom field for show icons
2017-03-03 16:43:33 -08:00
Peli de Halleux
bd1f5a2b75 support for recorder (#361) 2017-03-01 14:24:59 -08:00
Peli de Halleux
4922a4a833 images for icons 2017-02-28 22:37:48 -08:00
Peli de Halleux
c26a81dee9 scale down simulator to avoid side cutout 2017-02-28 12:15:32 -08:00
Peli de Halleux
1a398e0db9 moving icon files under sim 2017-02-27 09:59:14 -08: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
Richard Knoll
649e8f7c0f Fix neopixel transform in firefox (#345) 2017-01-26 02:51:26 +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
Peli de Halleux
cbc228dca3 negative scroll fix
fix for Microsoft/pxt#813
2017-01-09 14:17:19 -08:00
Sam El-Husseini
a54504f31c Updating bluebird typings path 2017-01-03 11:38:21 -08:00
Peli de Halleux
2da0cf1178 support for buffer signature (#325) 2016-12-23 08:58:38 -08:00
Peli de Halleux
3d0523a298 fix for roll/pitch in simulator.
fix for https://github.com/Microsoft/pxt/issues/893
2016-12-08 12:14:34 -08:00
Peli de Halleux
d791738d84 fixing y values in accelerometer simulator
fix for https://github.com/Microsoft/pxt/issues/893
2016-12-08 11:57:17 -08:00
Peli de Halleux
6c11dbcdf4 added setTransmitPower in BLE 2016-12-07 09:05:03 -08:00
Peli de Halleux
097564748c fixing simulator 2016-11-30 04:27:08 -08:00
Peli de Halleux
7117ba771e support for multiple simulated servos 2016-11-07 22:25:19 -08:00
Peli de Halleux
3f94033c7d Merge branch 'master' of https://github.com/Microsoft/pxt-microbit 2016-11-07 13:30:53 -08:00
Peli de Halleux
0269ffa5ae support for filesystem in simulator 2016-11-07 11:11:38 -08:00
Sam El-Husseini
29eef560b0 whitespace 2016-11-07 10:33:22 -08:00
Sam El-Husseini
48afb52ef1 Fix for accelerometer simulator not working in firefox. Fixes Microsoft/pxt/#679 2016-11-04 15:39:57 -07:00
Peli de Halleux
4963bf776a basic servo simulation (#297) 2016-11-01 08:16:03 -07:00
Peli de Halleux
76adc3c00a added led.enable (#294)
* added led.enable

* fixed simulator support for led.enable
2016-10-28 08:34:04 -07:00
Richard Knoll
f191d9033d Updating radio JSON writing API (#290) 2016-10-25 16:38:01 -07:00
Richard Knoll
79c89b832a New Radio API (#287)
* Adding radio API for receiving a packet

* More new radio API changes

* renaming some properties

* Redoing radio packet parsing and updating new callback api
2016-10-24 12:55:44 -07:00
Peli de Halleux
6ad59e04a6 fixed uart issues 2016-10-18 21:47:54 -07:00
Peli de Halleux
ae5d5c74a7 better support for BLE UART and alignment with serial blocks. (#276)
* aligning uart apis with serial

* reorganizing serial/bluetooth blocks

* Autoupdate configuration for UART. (#279)

* Autoupdate configuration for UART.

* removing serial autoupdates.
2016-10-18 21:36:42 -07:00
Sam El-Husseini
277d5a721c rename "microbit" package to "core" #414 (#270)
* rename "microbit" package to "core" #414

* shouldn't edit the package id.

* updating package.json

* updated the wrong version

* missed updating pxt.json of tests
2016-10-10 16:21:50 -07:00
Michal Moskal
fc495b928e Implement getPinAddress in simulator 2016-09-29 10:47:50 +01:00
Peli de Halleux
5edd06c9b9 migrating instruction generation logic to pxt 2016-09-26 13:26:43 -07:00
Peli de Halleux
850fb54f52 missing shims for devices namespace 2016-09-19 09:49:58 -07:00
Peli de Halleux
b7da28285e adding stubs for bluetooth functions 2016-09-15 09:40:58 -07:00
Peli de Halleux
8a58d664c3 adding clear image in stopanimation 2016-09-14 07:54:35 -07:00
Peli de Halleux
167c1d8fce loading board definition from pxtarget.json 2016-09-13 15:32:12 -07:00
Peli de Halleux
e59ae37954 moving neopixel state to pxt 2016-09-13 13:09:02 -07:00
Peli de Halleux
72a621ec8b mvoing edge connector to pxt 2016-09-13 12:48:07 -07:00
Peli de Halleux
e5d985dbf1 moving boardhost to pxt 2016-09-13 09:59:34 -07:00
Peli de Halleux
9db91d89d6 refactor part global lists 2016-09-13 09:44:58 -07:00
Peli de Halleux
1fa9bf12d5 refactoring dalboard 2016-09-12 21:29:55 -07:00
Peli de Halleux
8b40850a94 tweaks to neopixel rendering 2016-09-11 21:55:54 -07:00
Peli de Halleux
910772d54e refacotring various simulator features into pxt 2016-09-09 22:56:26 -07:00
Peli de Halleux
3858b0a0a0 moving wiring to pxt 2016-09-09 15:01:29 -07:00
Peli de Halleux
086bcf372f remove dependencies on dal.d.ts 2016-09-09 13:43:41 -07:00
Peli de Halleux
dcb2b21e66 removing dal dependency 2016-09-09 11:36:36 -07:00
Daryl Zuniga
c63e2c85f1 new part definitions (#247)
* working on new part definitions

* draft of new part definitions

* updates comments

* starting new allocator

* starting from the old allocator

* alloc internals renaming

* alloc minor renaming

* alloc internal renaming

* progress on new parts definition

* progress on new part defs allocator

* refactors BBLoc; progress on new allocator

* more progress on new allocator

* finishing new allocator

* deleting old allocator

* moves new allocator and part definitions

* porting to new part definitions

* refactors instructions for new definitions

* debugging new allocator

* fixes ground and power wire colros

* fixing new part definition bugs

* fixes wire end offsets; fixes NeoPixel placement

* fixes colorGroup issue

* fixes led matrix wiring

* naming tweaks

* fixes instructions regressions

* typo
2016-09-09 01:23:39 -07:00
Peli de Halleux
e8f9e0f023 lighter rendering of breadboard in grayed 2016-09-08 00:54:19 -07:00
darzu
7448db5b98 makes instruction panels inline-block 2016-09-07 15:00:42 -07:00
darzu
e59fd8469b improves neopixel simulator 2016-09-07 10:58:44 -07:00
darzu
29cf4d3e53 uses croc clips in instructions only for micro:bit 2016-09-06 10:52:22 -07:00
Michal Moskal
61a29f7c67 Always diplay sad face on errors; use nullCheck() function; see https://github.com/Microsoft/pxt/issues/302 2016-09-05 14:26:07 +01:00
Peli de Halleux
50293fc654 don't repace spaces 2016-09-02 21:38:22 -07:00
darzu
1f077beb65 directly wires power if there is single usage 2016-09-02 16:11:58 -07:00
darzu
13f53d730a fixes instruction steps for finer power usage 2016-09-02 15:43:26 -07:00
darzu
8adcab1cab finer grain power wires based on usage 2016-09-02 15:24:16 -07:00
Peli de Halleux
c34b0a1aeb Merge branch 'master' into max6675 2016-09-01 22:48:02 -07:00
Peli de Halleux
39c146329f perf optimization 2016-09-01 22:18:36 -07:00
Peli de Halleux
da16428842 merging master 2016-09-01 21:12:03 -07:00
darzu
359c456577 adds full-page instruction printing 2016-09-01 19:07:01 -07:00
Peli de Halleux
a656fbbd7b embedding parts svg files in pxt.json 2016-09-01 16:24:12 -07:00
Peli de Halleux
e681cc8c97 added parts to microbit 2016-09-01 15:37:39 -07:00
Peli de Halleux
a3dd64eb4c Merge branch 'master' of https://github.com/Microsoft/pxt-microbit 2016-09-01 12:12:48 -07:00
Peli de Halleux
b865cce44e embedding neopixel / speaker svgs 2016-09-01 10:56:06 -07:00
darzu
dc42900c7f merges with master 2016-09-01 10:08:32 -07:00
darzu
dcc3bd95fe ignores max6675 2016-09-01 10:07:11 -07:00
Peli de Halleux
a562557bca Merge branch 'master' of https://github.com/Microsoft/pxt-microbit 2016-09-01 08:59:31 -07:00
Peli de Halleux
d890c05229 moving parts .svg under simulator 2016-09-01 08:57:20 -07:00
Michal Moskal
4340e1f7ed Rename instructions.html to siminstructions.html; fixes #234 2016-09-01 16:47:32 +01:00
Michal Moskal
ef7fdc2ef7 Rename pxsim.pxt to pxsim.pxtcore 2016-09-01 13:06:03 +01:00
darzu
7048156b46 draws small wires for small micro:bit pins 2016-08-31 22:41:30 -07:00
darzu
232758805b removes "debugger" statement 2016-08-31 21:56:46 -07:00
darzu
211d4e5538 adds max6675 2016-08-31 21:55:55 -07:00