Commit Graph

453 Commits

Author SHA1 Message Date
System Administrator
193f66fd2d Limit sound concurrency to 1 2017-12-07 16:27:28 -08:00
Peli de Halleux
2c22ea925f
Merge pull request #69 from Microsoft/sounds
Get rid of "play sound" blocks; add non-blocking "play sound effect"
2017-12-07 11:53:04 -08:00
Caitlin Hennessy
4e4aa266d5 Limit sound concurrency 2017-12-07 11:27:29 -08:00
Peli de Halleux
085ab0844b rename "power" to "set speed" for consistency 2017-12-06 22:41:51 -08:00
Peli de Halleux
162e437527 using icons on drop downs 2017-12-06 22:34:11 -08:00
Peli de Halleux
ab13cb9047 adding a few more icons 2017-12-06 21:40:00 -08:00
Peli de Halleux
30e576345b more icon updates 2017-12-06 16:29:21 -08:00
Peli de Halleux
dfc4c83718 resizing svg to sqaures
updates some icons
2017-12-06 16:22:31 -08:00
Peli de Halleux
22ab1cba8d removing infrared from default ev3 configuration 2017-12-05 10:49:48 -08:00
Caitlin Hennessy
064d6f9411 Check if sound not defined 2017-12-04 12:24:41 -08:00
Caitlin Hennessy
330aff8082 Restore 'play sound effect' name 2017-12-01 09:59:59 -08:00
Caitlin Hennessy
aa636aef96 Separate blocks for 'play sound' and 'play sound until done' 2017-11-30 15:49:50 -08:00
Caitlin Hennessy
b940befe85 Default piano note should be 1046 2017-11-30 12:44:22 -08:00
Peli de Halleux
c6bae5e17b missed files 2017-11-30 11:28:20 -08:00
Peli de Halleux
7bdb9683c9 fixing naming 2017-11-30 10:37:59 -08:00
Peli de Halleux
3c675892aa moving gyro into separate project 2017-11-30 10:34:34 -08:00
Peli de Halleux
a92edcffee adding waitUntil to buttons 2017-11-30 10:05:00 -08:00
Peli de Halleux
305a650125 using threshold detector 2017-11-30 09:59:28 -08:00
Peli de Halleux
34a5aeb7d2 moving IR as well 2017-11-30 09:53:43 -08:00
Peli de Halleux
32f524ddd8 fixing build 2017-11-30 09:48:43 -08:00
Peli de Halleux
b690c1634b updated distance detection 2017-11-30 09:41:34 -08:00
Peli de Halleux
8089841892 wait until 2017-11-30 09:39:24 -08:00
Peli de Halleux
3d8c697586 moving into separate project 2017-11-30 09:38:04 -08:00
Peli de Halleux
4ed41adb6a avoid conflicts of event values 2017-11-30 08:31:31 -08:00
Peli de Halleux
39b7f99741 update mode selection 2017-11-30 08:20:00 -08:00
Peli de Halleux
ad17191ae2 collapse reflected/ambient blocks 2017-11-29 22:47:17 -08:00
Peli de Halleux
4a8633f506 updated descriptions 2017-11-29 22:11:59 -08:00
Peli de Halleux
3690f409b0 docs skeleton 2017-11-29 22:09:12 -08:00
Peli de Halleux
97663d2b83 updated naming 2017-11-29 21:57:05 -08:00
Peli de Halleux
4d2b7ced71 moving color sensor to separate project 2017-11-29 21:41:00 -08:00
Peli de Halleux
5676103052
Merge pull request #63 from Microsoft/speedispower
use speed when setting power
2017-11-29 21:22:32 -08:00
Michal Moskal
cb8c14fbb1 Allow waitForEvent on main thread; fixes #60
also use target_panic() instead of assert
2017-11-29 19:54:17 -03:00
Peli de Halleux
815d438d86 use speed when setting power 2017-11-29 00:04:54 -08:00
Caitlin Hennessy
da8de1e31e
Merge pull request #56 from Microsoft/note 2017-11-28 17:00:57 -08:00
Peli de Halleux
7e502b1749 adding bare docs 2017-11-28 16:24:22 -08:00
Peli de Halleux
f22edac84d moving touch stuff into separate projects 2017-11-28 16:11:15 -08:00
Caitlin Hennessy
ef2807a84e Fill in real min and max 2017-11-28 16:04:25 -08:00
Peli de Halleux
580b40876c fixing bumped 2017-11-28 16:02:04 -08:00
Peli de Halleux
b57ae5d588 implement wasPressed 2017-11-28 15:33:43 -08:00
Peli de Halleux
71479d0caa adding touch button examples 2017-11-28 15:23:54 -08:00
Caitlin Hennessy
7e39cdde9d Add a todo 2017-11-27 17:21:32 -08:00
Caitlin Hennessy
85ca6b3698 Support for new data structure 2017-11-27 14:12:04 -08:00
Caitlin Hennessy
2c89848fda More 2017-11-21 17:11:11 -08:00
Caitlin Hennessy
ed1c187514 Initial work 2017-11-21 11:35:53 -08:00
Peli de Halleux
d2c7a5ace0 support for wait/when 2017-11-18 07:37:46 -08:00
Peli de Halleux
4a7e8c5fa8 adding block for sounds 2017-11-16 23:28:44 -08:00
Peli de Halleux
988a2b638b add icon 2017-11-16 22:52:29 -08:00
Peli de Halleux
e400637ba1
Merge branch 'master' into icons 2017-11-16 22:47:40 -08:00
Peli de Halleux
b2768b1099 added showimage 2017-11-16 22:46:51 -08:00
Peli de Halleux
c936c16c33 more icons 2017-11-16 22:03:43 -08:00
Peli de Halleux
d100026d5c more icons 2017-11-16 13:05:50 -08:00
Peli de Halleux
41c2899feb more icons 2017-11-16 13:03:15 -08:00
Peli de Halleux
9437873427 more images 2017-11-16 12:58:37 -08:00
Peli de Halleux
dab281a9cb including a few icons in block names 2017-11-16 12:41:47 -08:00
Peli de Halleux
170e6b700b updating to latest pxt 2017-11-09 10:24:12 -08:00
Peli de Halleux
400f01a6be fixing duplicate block id 2017-10-31 09:42:53 -07:00
Peli de Halleux
08f36fbb94
Merge pull request #30 from Microsoft/jres
Import images and sounds from ev3 EDU
2017-10-31 16:48:24 +01:00
Peli de Halleux
329a1e15ea simplified IR API 2017-10-30 21:39:50 -07:00
Peli de Halleux
16a025f3a0 simplified motor API 2017-10-30 21:29:18 -07:00
Peli de Halleux
26b975b5f2 images 2017-10-30 14:51:14 -07:00
Michal Moskal
a082807455 Fix locking in waitForEvent() and sample playing 2017-10-30 19:18:01 +00:00
Michal Moskal
e8e31e6aa7 Fix brick.print() 2017-10-30 19:03:45 +00:00
Michal Moskal
2df90152fe Remove debug output 2017-10-30 18:56:03 +00:00
Michal Moskal
e25590539e Add sample-playing code 2017-10-30 18:55:23 +00:00
Michal Moskal
a7795302fc Make it compile with master 2017-10-30 18:54:53 +00:00
Peli de Halleux
bfc95e075e
Merge branch 'master' into jres 2017-10-30 18:48:18 +01:00
Peli de Halleux
1976534da0
Merge pull request #28 from Microsoft/sensorscat
Aligning categories with LabView/RobotC
2017-10-30 18:46:27 +01:00
Michal Moskal
ebbbe6e86c Add sounds (only simulator for now) 2017-10-30 17:25:58 +00:00
Peli de Halleux
c4a9b4a381 updated brick color 2017-10-30 09:58:00 -07:00
Peli de Halleux
c7d36a5e82 moving motors up 2017-10-30 09:55:36 -07:00
Peli de Halleux
c8c45be057 fixing brick groups 2017-10-30 09:51:18 -07:00
Michal Moskal
a8a7267851 Add LEGO EDU images 2017-10-30 15:34:47 +00:00
Michal Moskal
dcb398d3d5 Rename Icon to Image 2017-10-30 13:28:01 +00:00
Michal Moskal
f6e350cf9f Add separate type for Icons (same repr as buffer) 2017-10-30 13:04:12 +00:00
Michal Moskal
c085094394 Add screen::unpackPNG() 2017-10-30 12:45:37 +00:00
Peli de Halleux
7c2ea7c406 fixing more groups 2017-10-28 09:20:34 -07:00
Peli de Halleux
84b98a2788 brick namespace 2017-10-28 09:13:02 -07:00
Michal Moskal
57647318c4 Sensor fixes 2017-10-27 19:18:56 +01:00
Michal Moskal
2720698864 Fix infinite loop 2017-10-27 19:18:47 +01:00
Peli de Halleux
dfe2fe3cff brick refactoring 2017-10-27 11:05:04 -07:00
Peli de Halleux
18fefa2a44 output -> motors 2017-10-27 11:01:11 -07:00
Peli de Halleux
05a8395028 stop all motors 2017-10-27 02:52:42 -07:00
Peli de Halleux
712c2178d2 simplify motor API 2017-10-27 01:47:25 -07:00
Peli de Halleux
95076f8f24 differentiate large/medium motors 2017-10-27 00:09:00 -07:00
Peli de Halleux
6391620373 added 2 more activities 2017-10-26 23:58:34 -07:00
Peli de Halleux
215e846a54 refactored remote button 2017-10-26 21:10:37 -07:00
Peli de Halleux
21b34cb459 simplified events 2017-10-26 20:57:18 -07:00
Peli de Halleux
282134f5dc refactoring IR 2017-10-26 20:51:13 -07:00
Peli de Halleux
6b44352839 event for ultrasonic module 2017-10-26 20:38:17 -07:00
Peli de Halleux
9a883d5672 Merge branch 'master' into irevents 2017-10-26 20:21:06 -07:00
Peli de Halleux
59ce4338d3 renaming IR events 2017-10-26 20:20:24 -07:00
Michal Moskal
2c72173bfe Use the _query() infrastructure for polling 2017-10-25 13:34:05 +02:00
Peli de Halleux
1a5992408b added event for color changes 2017-10-24 23:10:27 -07:00
Peli de Halleux
0e1a3b7e6b adding setpixel 2017-10-24 22:05:24 -07:00
Peli de Halleux
ea6bfa03bd touched -> pressed 2017-10-24 21:55:37 -07:00
Peli de Halleux
7e9d42a571 reset motors on start 2017-10-24 20:28:31 -07:00
Peli de Halleux
1b51320edb pausing while running motor 2017-10-24 20:20:07 -07:00
Peli de Halleux
4f44238237 use fixed instances for motors 2017-10-24 20:16:33 -07:00
Peli de Halleux
c8ffa0ded7 fixed test 2017-10-24 18:49:15 -07:00
Peli de Halleux
33c8902050 aligning groups with hardware name components 2017-10-24 16:52:13 -07:00
Peli de Halleux
fa6c81cf80 buttons -> brick buttons 2017-10-24 16:25:03 -07:00
Peli de Halleux
46175fc7db separating touch sensor stuff 2017-10-24 15:58:47 -07:00
Peli de Halleux
e6ef86101f more renaming 2017-10-24 15:37:48 -07:00
Peli de Halleux
c4d3d7634e fixed naming of sonar 2017-10-24 15:35:42 -07:00
Peli de Halleux
b0380fbef8 more annotations 2017-10-24 15:33:28 -07:00
Peli de Halleux
c85c68ab68 fixing color / gyro 2017-10-24 15:22:07 -07:00
Peli de Halleux
334d5aca9a on/off field editors on motors 2017-10-24 15:03:21 -07:00
Peli de Halleux
1330a0fb82 fixed gyro def 2017-10-24 14:54:36 -07:00
Michal Moskal
005447ce44 4 times more sensors\! 2017-10-24 19:58:52 +01:00
Peli de Halleux
5d5d78ced0 compiled strings 2017-10-24 09:47:30 -07:00
Peli de Halleux
fe46461c4c adding a few more blocks 2017-10-24 05:30:05 -07:00
Peli de Halleux
8fa6cf41ca updated build files 2017-10-23 13:43:59 -07:00
Sam El-Husseini
6a719e7718 Use field toggle for switching the motor on / off 2017-10-04 17:04:26 -04:00
Sam El-Husseini
b18b8333d0 Remove button group 2017-10-03 02:31:06 -04:00
Sam El-Husseini
84d80131d4 Various UI fixes. Block refactoring and adding touch and color blocks. 2017-10-03 02:28:44 -04:00
Sam El-Husseini
48e081e584 Update json strings 2017-08-28 21:52:09 -07:00
Sam El-Husseini
a3f56f4c9a Fix pattern enum decompilation and setSpeed when no speed is set. 2017-08-09 10:02:58 -07:00
Sam El-Husseini
65dd4617f1 Add get speed block 2017-08-08 13:02:11 -07:00
Michal Moskal
d42117a2a5 Add reading motor speed data (untested) 2017-08-08 11:41:47 +02:00
Michal Moskal
b0145cf378 Fix test.ts so it compiles 2017-08-08 11:41:31 +02:00
Sam El-Husseini
ce489bba56 Update core-strings 2017-08-07 23:39:54 -07:00
Sam El-Husseini
b0944ba431 Change say to print. 2017-08-07 21:50:45 -07:00
Sam El-Husseini
8736d32f09 Add screen blocks 2017-08-07 21:50:04 -07:00
Sam El-Husseini
15f50966aa Update motor APIs 2017-08-07 17:39:37 -07:00
Peli de Halleux
88e21db35e fixing raiseEvent 2017-08-07 12:07:43 -07:00
Sam El-Husseini
5e7af872b5 Add setLights shadow block 2017-08-07 10:19:38 -07:00
Sam El-Husseini
440dbbe82a Update style, use freshcoat 2017-08-04 20:54:22 -07:00
Sam El-Husseini
fe7e3a8790 Update to latest pxt-core and pxt-common-packages with codalnext changes 2017-08-04 15:03:14 -07:00
Michal Moskal
f760998f77 Display error number on the screen upon panic 2017-07-15 22:32:10 +02:00
Michal Moskal
0dfde3b65f Implement text/icon methods in simulator 2017-07-13 22:01:39 +02:00
Michal Moskal
340d5e5cbf Add custom impl of output; drop ev3-api 2017-07-11 16:58:51 +02:00
Michal Moskal
02e45762b4 Own implementation of music 2017-07-11 16:44:35 +02:00
Michal Moskal
ad5d5daee5 Adding local include with constants; dropping LMS enum 2017-07-11 16:18:59 +02:00
Michal Moskal
b60775fa50 Add Quad drawing option 2017-07-11 15:52:37 +02:00
Michal Moskal
574fdb3473 Add microbit font 2017-07-11 15:40:27 +02:00
Michal Moskal
0d6e6a7c96 Remove unused enum 2017-07-11 15:27:23 +02:00
Michal Moskal
8c6b56fc39 Fix drawIcon 2017-07-11 15:25:14 +02:00
Michal Moskal
a3db891673 Custom rendering almost works 2017-07-11 14:43:12 +02:00
Michal Moskal
3bf3d07e4c Merge branch 'master' into newgfx 2017-07-11 12:49:38 +02:00
Michal Moskal
a838421181 Do not rely on global init order 2017-07-11 12:31:34 +02:00
Michal Moskal
4f6941e6cf Implement button mmap 2017-07-11 11:40:40 +02:00
Michal Moskal
ce758a091e Moving drawing code into TS 2017-07-11 10:35:00 +02:00
Sam El-Husseini
46c18af461 Initial board SVG and basic simulator 2017-07-11 11:15:17 +03:00
Michal Moskal
17a01b46be Working on own LCD impl 2017-07-10 21:37:29 +01:00
Michal Moskal
1f51d137b3 Cleanup 2017-07-10 15:11:21 +01:00
Michal Moskal
d3263d8456 Add ultrasonic and gyro (untested) 2017-07-10 15:07:23 +01:00
Michal Moskal
babdf45fc3 Add color sensor 2017-07-10 14:43:54 +01:00
Michal Moskal
df45cb98ef Block-friendly buttons 2017-07-10 14:26:19 +01:00
Michal Moskal
36050de253 Move button code 2017-07-10 14:18:00 +01:00
Michal Moskal
768e8c60f5 Move buttons to TS 2017-07-10 14:16:31 +01:00
Michal Moskal
17488b5c6b Bugfixes 2017-07-10 13:05:29 +01:00
Michal Moskal
617aae5943 Default to remote 2017-07-10 12:53:18 +01:00
Michal Moskal
0d9e719078 Button name clashes with C++ 2017-07-10 12:48:04 +01:00
Michal Moskal
0cc3cfee4b IR works 2017-07-10 12:47:00 +01:00
Michal Moskal
03b864c355 Rename ButtonWrapper to Button 2017-07-10 11:43:50 +01:00
Michal Moskal
6b5dd6c07b Add control.dmesg 2017-07-10 11:42:30 +01:00
Michal Moskal
1e3bce6d44 Split analog.ts 2017-07-10 11:37:14 +01:00
Michal Moskal
c23bf44e35 Renaming 2017-07-10 11:31:18 +01:00
Michal Moskal
0a1ab0a90f Re-work sensor framework 2017-07-10 11:29:42 +01:00
Michal Moskal
b446e0baac Add missing buffer sig 2017-07-10 09:10:36 +01:00
Michal Moskal
eab5fcb210 Remove test code 2017-07-09 18:12:36 +01:00
Michal Moskal
c8f41737cb Fix alignment 2017-07-09 18:12:24 +01:00
Michal Moskal
fd67bb8845 Add mmap.slice and allow for 0-sized fd-only mappings 2017-07-09 17:51:16 +01:00
Michal Moskal
0de116c9cc USB handling in PXT app 2017-07-09 10:19:14 +01:00
Michal Moskal
672f888663 Block LMS while running and implemnet own USB HID handling 2017-07-08 21:18:05 +01:00
Michal Moskal
0b56acb1b8 Adding more sensors 2017-07-08 19:17:36 +01:00
Michal Moskal
b79fd7096f Add TouchSensor class with events 2017-07-08 11:35:23 +01:00
Michal Moskal
aeb326fac6 Merge branch 'master' of github.com:Microsoft/pxt-ev3 2017-07-08 11:16:55 +01:00
Michal Moskal
8163e550bd Add pxt::unsafePollForChanges 2017-07-08 11:16:39 +01:00
Michal Moskal
51b22e2d93 Starting sensor support 2017-07-08 11:16:12 +01:00
Sam El-Husseini
96a238b87a Update colours 2017-07-07 21:30:52 +03:00
Michal Moskal
b86a552a5b Add support for mmap(2) 2017-07-07 18:26:49 +01:00
Sam El-Husseini
d2946842a9 Initial themeing 2017-07-07 18:16:01 +03:00
Michal Moskal
99a25e07a7 Add some motor support 2017-07-07 15:15:36 +01:00
Michal Moskal
e8d8222d86 Special-handle DEVICE_ID_NOTIFY_ONE 2017-07-07 11:49:13 +01:00
Michal Moskal
97b6c7dc4b Add music 2017-07-07 11:44:34 +01:00
Michal Moskal
43b167957b Use custom build of ev3-api, and own screen refresh 2017-07-07 10:38:20 +01:00
Michal Moskal
6fb7908b21 Add blocksprj 2017-07-06 19:50:19 +01:00
Michal Moskal
3010b29a26 Run program after flashing 2017-07-06 17:58:15 +01:00
Michal Moskal
cbbc51641e Fix enter 2017-07-06 12:26:18 +01:00
Michal Moskal
afc5e643d5 Now running ELF in background to enable HID comms 2017-07-06 12:24:21 +01:00
Michal Moskal
3e9a94d35f Make scroll work 2017-07-05 19:17:26 +01:00
Michal Moskal
ddc53df7f8 Fixes in exit code 2017-07-05 18:35:05 +01:00
Michal Moskal
7ccdabb4d4 Implementing dmesg and serial store 2017-07-05 17:53:22 +01:00
Michal Moskal
dfb3f9fbeb Hard-wire escape button to exit 2017-07-05 14:54:39 +01:00
Michal Moskal
f9073b3505 Add more screen stuff 2017-07-05 13:56:13 +01:00
Michal Moskal
02d8cf7056 Starting on screen impl 2017-07-05 13:06:58 +01:00
Michal Moskal
7671a75dbc Add standard logos 2017-07-05 13:06:20 +01:00
Michal Moskal
0aeba646bd Add LED support 2017-07-05 12:27:54 +01:00
Michal Moskal
9f8377f893 Add C++ constants file 2017-07-05 11:42:42 +01:00
Michal Moskal
f2d398909b Add button support 2017-07-05 01:17:26 +01:00
Michal Moskal
d7f97d6476 Test interleaving 2017-07-04 21:26:20 +02:00
Michal Moskal
dcd293abe4 Dropping libstdc++ dep 2017-07-04 16:11:54 +02:00
Michal Moskal
d174307651 Switch to one-big-mutex mode 2017-07-04 11:53:49 +02:00
Michal Moskal
e8038416e7 Sleep more lenient 2017-07-03 14:02:03 +02:00
Michal Moskal
f0a7990efa Initial draft of pthread-based impl 2017-07-03 13:57:34 +02:00
Michal Moskal
a1fc4290f4 Initial draft of events with GNU PTH 2017-07-02 13:32:17 +02:00
Michal Moskal
5e0e1caef3 Add npm libs 2017-07-01 13:05:52 +02:00
Michal Moskal
2fe2f93abc Add dmesg, compilation fixes 2017-07-01 12:43:10 +02:00
Michal Moskal
33b9bba2a9 Build fixes 2017-06-30 13:10:08 +02:00
Michal Moskal
73ec883696 Make it build 2017-06-29 19:41:38 +02:00
Michal Moskal
35eb61d5e5 Setting up build 2017-06-29 16:35:57 +01:00
Michal Moskal
207e7a026c Initial commit, based on pxt-adafruit 2017-06-29 15:47:26 +01:00