Commit Graph
100 Commits
Author SHA1 Message Date
Michał MoskalandPeli de Halleux 8ed79e7133 Swap X/y in images (#528)
* Swap X/Y in image encoding

* Fix PNG decoder

* Now really fix png

* reducing deps

* moving png.cpp into ev3

* bumped pxt

* updated shims

* fixing c++ compilation

* updated shims

* Fix pixel order

* update pxt

* Fix C++ image decoding

* Add expanded PNG images

* Generate E1 format images (in libs/ev3 run 'pxt buildsprites images')

* Go back to white background

* Remove PNG support
2018-04-19 12:08:16 -07:00
Michał MoskalandPeli de Halleux c2d26a8418 Integrate screen APIs from common packages (#343)
* starting screen api intergration

* Further image integration

* Aligning with new screen apis

* Build fixes

* Adjust to common screen state

* Fix unpackPNG

* Add game library

* Optimize screen rendering

* bumping common packages

* updated shims

* moving images into ev3

* upgrading to common packages

* added try/use

* cap

* fixed tryp age
2018-02-26 15:16:17 -08:00
Michał MoskalandPeli de Halleux 20a4673f98 First draft of storage APIs (#122)
* First draft of storage APIs

* bumped pxt-core

* using fixed instances to seprate temp from permanent

* send console to storage

* sim support

* missing sim stubs

* adding storage blocks

* more sim support

* remove storage from default package

* fix rendering of ms

* render raw ms

* slize at better place

* duplicate bundled dir

* refactor limit

* simplify limit logic
2018-01-11 20:05:45 -08:00
Michał MoskalandPeli de Halleux b3f9a4c92f Make sure we stop motors on exit (#199) 2018-01-07 07:54:40 -08:00
Michal Moskal 4039a85bc9 Make sure the ESC button always stops the program 2018-01-05 16:17:33 +00:00
Michal Moskal 7bd6280292 Disable HID deploy from command line (seems broken; was crashing until my previous checkin) 2018-01-05 16:17:20 +00:00
Michal Moskal 2ebe96e563 Fix command line deploy 2018-01-05 15:33:09 +00:00
Michał MoskalandPeli de Halleux b144744509 Add tsconfig.json for easier library editing (#96) 2017-12-15 14:29:31 -08:00
Michal Moskal c7a3f5bbd0 Delay user code by 100ms to get sensor reading (fixes #90) 2017-12-15 11:55:20 +00:00
Michal Moskal 41d5052583 Run sensor "change handler" also with the initial value 2017-12-15 11:54:53 +00:00
Michal Moskal 07ddec343a Formatting 2017-12-15 11:30:15 +00:00
Michal Moskal 5a9a5e997a Error reporting fixes 2017-12-15 11:29:18 +00:00
Michal Moskal 55b6549999 Implement getSerialNumber (based on BT MAC) 2017-12-15 11:25:23 +00:00
Michal Moskal 67ec4accb9 Monitor memory usage and panic on over 8MB used 2017-12-13 15:28:52 +00: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
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
Michal Moskal ebbbe6e86c Add sounds (only simulator for now) 2017-10-30 17:25:58 +00:00
Michal Moskal a8a7267851 Add LEGO EDU images 2017-10-30 15:34:47 +00:00
Michal Moskal 9cdb4081fd Add PNG decompressor in SIM 2017-10-30 14:42:08 +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
Michal Moskal 4e99cd3ef1 0.0.26 2017-10-27 19:23:01 +01: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
Michal Moskal c0bab4877a Merge branch 'master' of github.com:Microsoft/pxt-ev3 2017-10-27 15:17:24 +01:00
Michal Moskal d2a1d10ada Add converter from RGF to PNG 2017-10-27 15:17:21 +01:00
Michal Moskal 3a1601a419 Add rsf2wav.js 2017-10-27 10:42:33 +01:00
Michal Moskal 2c72173bfe Use the _query() infrastructure for polling 2017-10-25 13:34:05 +02:00
Michal Moskal 005447ce44 4 times more sensors\! 2017-10-24 19:58:52 +01:00
Michal Moskal ccda971fd1 Bump PXT and common packages 2017-10-24 12:50:00 +01:00
Michal Moskal ebcde71950 Fix hid deployment from command line 2017-08-08 11:47:10 +02: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
Michal Moskal 17683033b1 Add branch info 2017-08-07 12:15:56 +02:00
Michal Moskal 31f3d108c5 Update build instructions 2017-08-07 12:15:06 +02:00
Michal Moskal b45bf7512c 0.0.9 2017-08-07 11:13:05 +02:00
Michal Moskal 2dec405a9b Catch errors from initAsync 2017-08-07 11:12:52 +02:00
Michal Moskal 29009aa5e5 0.0.8 2017-08-07 11:08:15 +02:00
Michal Moskal 86011827dc Fix initialization without HID 2017-08-07 10:56:21 +02:00
Michal Moskal 8321c76f4c Use the correct size limit for CRAMFS (10M) 2017-07-27 21:11:23 +01:00
Michal Moskal 227f9614b0 Strip lego- prefix from files on the brick 2017-07-27 21:10:52 +01:00
Michal Moskal de0b5f0d86 Allow writing to currently executing files 2017-07-27 20:42:28 +01:00
Michal Moskal abdb21f2a0 Update readme 2017-07-27 14:36:01 +01:00
Michal Moskal b16f659ea1 Start user app by invoking .rbf file (via added ioctl on usbdev) 2017-07-27 14:31:23 +01:00
Michal Moskal 34db42b469 Remove UF2 file repetition 2017-07-27 12:50:12 +01:00
Michal Moskal 3edceb248d Disable DMA in the MUSB driver 2017-07-27 12:49:34 +01:00
Michal Moskal 8f9b9a5e4e Use kernel log-level 6 by default 2017-07-27 12:49:19 +01:00
Michal Moskal 14783eadc2 Workaround UF2 driver problems by repeating the file 3 times 2017-07-26 19:14:12 +01:00
Michal Moskal 5e7754b436 More info about how images are created 2017-07-26 18:57:46 +01:00
Michal Moskal c6b4e506d1 Send restart request to uf2d upon usb disconnect 2017-07-26 18:14:26 +01:00
Michal Moskal 52ef98e249 Add more logging 2017-07-26 10:43:43 +01:00
Michal Moskal 9a3eec7d4d dmesg logging 2017-07-25 19:09:32 +01:00
Michal Moskal d2f6395443 Cleanup logging; remove excessive flush 2017-07-25 18:37:52 +01:00
Michal Moskal 7960c9f15e Logging fixes 2017-07-25 15:28:28 +01:00
Michal Moskal d84b2b187c Remove unnecessary changes; trim down logging 2017-07-25 15:10:06 +01:00
Michal Moskal bcf597143a Build and program starting fixes 2017-07-25 14:59:32 +01:00
Michal Moskal de180e97aa Add support scripts 2017-07-25 12:18:48 +01:00
Michal Moskal 11bcf77402 Add build files 2017-07-25 12:15:59 +01:00
Michal Moskal 763a5c7436 Add kernel module sources 2017-07-25 12:15:54 +01:00
Michal Moskal a159e2a668 Add NBD-based UF2 file server 2017-07-25 11:51:51 +01:00
Michal Moskal 46b78a6b27 Generate UF2 files when no HID available 2017-07-25 11:48:02 +01:00
Michal Moskal 00ec9c510f Update TODO 2017-07-15 22:32:43 +02: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 cb88fd7c2b Merge branch 'newgfx' 2017-07-11 15:42:15 +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
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 7e8a053f3a Update TODO 2017-07-10 15:09:06 +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