Граф коммитов

26 Коммитов

Автор SHA1 Сообщение Дата
Peli de Halleux 3b85e917fe
upgraded pxt (#175)
* upgraded pxt

* missing images

* fixing snippet
2018-02-01 09:48:29 -08:00
Sam El-Husseini ce811c28df
Make the simulator accessible (#166) 2018-01-12 13:08:15 -08:00
Sam El-Husseini a0fbb85a8c
SCOPE package fixes. Move out of advanced, fix svg to not allow drag of text (#165) 2018-01-10 15:53:02 -08:00
Sam El-Husseini ba8c075c7a
New sensing event blocks (#115)
* libs: core: move pin definitions to header file

We need to use pin definitions elsewhere, so move the pin definitions
out into their own header file.

Signed-off-by: Sean Cross <sean@xobs.io>

* libs: core: add basic input sensing

This adds basic input sensing, which will be used for callbacks and
event handling.

Signed-off-by: Sean Cross <sean@xobs.io>

* libs: core: fix input event support

This fixes input event support.

Rather than using an interrupt, we simply spawn a thread and monitor the
required pins.  This uses up a bit more processing power and isn't quite
as responsive as interrupt handling.  However, it means we can do
debounce filtering, and we don't have to worry about the small interrupt
context stack size.

Signed-off-by: Sean Cross <sean@xobs.io>

* Added simulator support for sensing events. Moved the blocks under the sensing category.

* Move events into a single block.

* Use pin number rather than digital pin

* libs: core: change input from HIGH/LOW to RISING/FALLING

These values were designed to mimic interrupt types.  They were
erronously defined as level-based, when really they're edge-based.  I.e.
the event will fire on the high-to-low event (falling) rather than when
the event is low.

Rename HIGH to RISING, and LOW to FALLING, to better reflect this.

Signed-off-by: Sean Cross <sean@xobs.io>

* libs: core: input: correct comment GND -> +3.3V pin

We support resistive touch when also touching the +3.3V pin, unlike
other platforms that require you to touch GND.

Update the comment to reflect this, so that it will be propagated to the
documentation.

Signed-off-by: Sean Cross <sean@xobs.io>

* libs: core: commit auto-generated strings

These strings were regenerated as a result of the previous patch.

Signed-off-by: Sean Cross <sean@xobs.io>
2017-11-02 00:09:54 -07:00
Sam El-Husseini bad3c36b6d Cleanup (#109)
* UI cleanup

* Scope cleanup

* Use 4 column for image dropdown (effects)

* Home screen UI fixes and flout fixes
2017-10-15 13:31:45 -07:00
Sam El-Husseini 070f1bc198 Fix analog mapping from the previous 0-1023 range to 0-255 as LTC-os expects (#99) 2017-10-06 13:17:04 -04:00
Sam El-Husseini e9ae9e679c Map pin analog value to the brightness of the pin led (#97)
* Make the brightness range from 0 to 100 instead of 255

* Minor fix

* Map pin analog value to the brightness of the pin led
2017-10-05 22:49:50 -04:00
Sam El-Husseini e39899ba83 Fix sim ON / OFF, Fix pins Fixes #42 2017-10-04 19:50:47 -04:00
Sam El-Husseini be39646ee8 Update neopixel glow 2017-10-04 12:46:20 -04:00
Sam El-Husseini 7758a1023f Fix firefox transform origin issue 2017-10-02 13:30:08 -04:00
Sam El-Husseini 2bff9c9ce0 Update board SVG and fix pin interactions 2017-10-02 13:14:41 -04:00
Sam El-Husseini 6f170238f6 Update board and getting started banner 2017-10-01 21:19:24 -04:00
Sam El-Husseini 69cb861749 Add Chibi Scope simulation behaviour 2017-07-12 13:01:15 +03:00
Guillaume Jenkins e507acd532 Sim leds (#29)
* Fix pin tooltips, add pin LEDs and RGB LED in sim

* Undo unecessary whitespace changes
2017-06-15 09:32:33 -07:00
guillaumejenkins f03accce04 Use updated SVG for simulator 2017-06-14 10:57:07 -07:00
Guillaume Jenkins 77cdce7c2f IE now downloads .wav file
* IE now downloads the .wav file

* Popup download instructions

* Fix types

* Bump pxt-core to 1.5.5

* Bump modulator version to enable downloading
2017-05-16 10:52:15 -07:00
Peli de Halleux 8af8c76adc demo board with circuit 2017-05-11 07:06:32 -07:00
Peli de Halleux 96749179e7 adding raw svg images 2017-05-11 01:36:10 -07:00
Sam El-Husseini 9cc5ff46f8 Clean up 2017-05-05 08:29:29 -07:00
Sam El-Husseini ff8a352dff Revert "Clean up"
This reverts commit d5f57ac3e2.
2017-05-05 08:28:44 -07:00
Sam El-Husseini d5f57ac3e2 Clean up 2017-05-05 08:19:32 -07:00
Sam El-Husseini 55db58a285 Updating board with colour 2017-03-21 15:28:23 -07:00
Sam El-Husseini cd2294bf77 Updating simulator and api. 2017-03-20 01:26:19 -07:00
Sam El-Husseini 9b831102c7 Updating simulator sag 2017-03-18 22:16:35 +13:00
Sam El-Husseini ad1600d4af Porting chibi code for basic and pins. 2017-03-18 14:09:49 +13:00
Sam El-Husseini e6b802cce3 Porting simulator. 2017-03-17 05:57:13 +13:00