Jacdac client services for MakeCode
Перейти к файлу
Peli de Halleux ac698aff30 1.8.37 2022-11-21 17:08:43 +00:00
.devcontainer move to node 16 2022-03-23 17:38:53 +00:00
.github/workflows machine to jukebox 2022-06-01 09:34:27 -07:00
.vscode Initial files for MakeCode project 2020-06-09 17:44:32 -07:00
accelerometer 1.8.37 2022-11-21 17:08:43 +00:00
accelerometer-server 1.8.37 2022-11-21 17:08:43 +00:00
acidity 1.8.37 2022-11-21 17:08:43 +00:00
air-pressure 1.8.37 2022-11-21 17:08:43 +00:00
air-quality-index 1.8.37 2022-11-21 17:08:43 +00:00
analog-button Use string constants for packing (#84) 2022-04-11 09:26:43 -07:00
arcade-gamepad 1.8.37 2022-11-21 17:08:43 +00:00
arcade-screen Use string constants for packing (#84) 2022-04-11 09:26:43 -07:00
arcade-sound Use string constants for packing (#84) 2022-04-11 09:26:43 -07:00
azure-iot-hub-health 1.8.37 2022-11-21 17:08:43 +00:00
azure-iot-hub-health-server 1.8.37 2022-11-21 17:08:43 +00:00
barcode-reader Use string constants for packing (#84) 2022-04-11 09:26:43 -07:00
base Use string constants for packing (#84) 2022-04-11 09:26:43 -07:00
bit-radio Use string constants for packing (#84) 2022-04-11 09:26:43 -07:00
bluetooth-transport 1.8.37 2022-11-21 17:08:43 +00:00
bootloader Use string constants for packing (#84) 2022-04-11 09:26:43 -07:00
braille-display 1.8.37 2022-11-21 17:08:43 +00:00
bridge Use string constants for packing (#84) 2022-04-11 09:26:43 -07:00
button 1.8.37 2022-11-21 17:08:43 +00:00
button-server 1.8.37 2022-11-21 17:08:43 +00:00
buzzer 1.8.37 2022-11-21 17:08:43 +00:00
buzzer-server 1.8.37 2022-11-21 17:08:43 +00:00
capacitive-button Use string constants for packing (#84) 2022-04-11 09:26:43 -07:00
character-screen 1.8.37 2022-11-21 17:08:43 +00:00
cloud-adapter 1.8.37 2022-11-21 17:08:43 +00:00
codal-message-bus 1.8.37 2022-11-21 17:08:43 +00:00
codal-message-bus-server 1.8.37 2022-11-21 17:08:43 +00:00
color 1.8.37 2022-11-21 17:08:43 +00:00
compass 1.8.37 2022-11-21 17:08:43 +00:00
control Use string constants for packing (#84) 2022-04-11 09:26:43 -07:00
controller 1.8.37 2022-11-21 17:08:43 +00:00
dashboard Use string constants for packing (#84) 2022-04-11 09:26:43 -07:00
dc-current-measurement 1.8.37 2022-11-21 17:08:43 +00:00
dc-voltage-measurement 1.8.37 2022-11-21 17:08:43 +00:00
devices/microbit 1.8.37 2022-11-21 17:08:43 +00:00
distance 1.8.37 2022-11-21 17:08:43 +00:00
dmx 1.8.37 2022-11-21 17:08:43 +00:00
docs add accelerometer to microcode sims 2022-09-23 04:47:37 -07:00
dot-matrix 1.8.37 2022-11-21 17:08:43 +00:00
dual-motors 1.8.37 2022-11-21 17:08:43 +00:00
e-co2 1.8.37 2022-11-21 17:08:43 +00:00
flex 1.8.37 2022-11-21 17:08:43 +00:00
gamepad 1.8.37 2022-11-21 17:08:43 +00:00
gyroscope 1.8.37 2022-11-21 17:08:43 +00:00
heart-rate 1.8.37 2022-11-21 17:08:43 +00:00
hid-adapter Use string constants for packing (#84) 2022-04-11 09:26:43 -07:00
hid-joystick 1.8.37 2022-11-21 17:08:43 +00:00
hid-joystick-server 1.8.37 2022-11-21 17:08:43 +00:00
hid-keyboard 1.8.37 2022-11-21 17:08:43 +00:00
hid-keyboard-server 1.8.37 2022-11-21 17:08:43 +00:00
hid-mouse 1.8.37 2022-11-21 17:08:43 +00:00
hid-mouse-server 1.8.37 2022-11-21 17:08:43 +00:00
humidity 1.8.37 2022-11-21 17:08:43 +00:00
illuminance 1.8.37 2022-11-21 17:08:43 +00:00
indexed-screen Use string constants for packing (#84) 2022-04-11 09:26:43 -07:00
infrastructure Use string constants for packing (#84) 2022-04-11 09:26:43 -07:00
iot-hub Use string constants for packing (#84) 2022-04-11 09:26:43 -07:00
jacscript-condition ran prettier 2022-04-08 08:42:49 -07:00
jacscript-manager Use string constants for packing (#84) 2022-04-11 09:26:43 -07:00
keyboard ran prettier 2022-04-08 08:42:49 -07:00
led 1.8.37 2022-11-21 17:08:43 +00:00
led-server 1.8.37 2022-11-21 17:08:43 +00:00
led-single 1.8.37 2022-11-21 17:08:43 +00:00
led-strip 1.8.37 2022-11-21 17:08:43 +00:00
light-bulb 1.8.37 2022-11-21 17:08:43 +00:00
light-level 1.8.37 2022-11-21 17:08:43 +00:00
logger Use string constants for packing (#84) 2022-04-11 09:26:43 -07:00
logger-server Use string constants for packing (#84) 2022-04-11 09:26:43 -07:00
magnetic-field-level 1.8.37 2022-11-21 17:08:43 +00:00
magnetometer 1.8.37 2022-11-21 17:08:43 +00:00
matrix-keypad Use string constants for packing (#84) 2022-04-11 09:26:43 -07:00
microphone Use string constants for packing (#84) 2022-04-11 09:26:43 -07:00
midi-output Use string constants for packing (#84) 2022-04-11 09:26:43 -07:00
model-runner 1.8.37 2022-11-21 17:08:43 +00:00
motion 1.8.37 2022-11-21 17:08:43 +00:00
motor 1.8.37 2022-11-21 17:08:43 +00:00
mouse ran prettier 2022-04-08 08:42:49 -07:00
multitouch 1.8.37 2022-11-21 17:08:43 +00:00
planar-position 1.8.37 2022-11-21 17:08:43 +00:00
potentiometer 1.8.37 2022-11-21 17:08:43 +00:00
power 1.8.37 2022-11-21 17:08:43 +00:00
power-supply Use string constants for packing (#84) 2022-04-11 09:26:43 -07:00
pressure-button Use string constants for packing (#84) 2022-04-11 09:26:43 -07:00
proto-test Use string constants for packing (#84) 2022-04-11 09:26:43 -07:00
proxy Use string constants for packing (#84) 2022-04-11 09:26:43 -07:00
pulse-oximeter 1.8.37 2022-11-21 17:08:43 +00:00
rain-gauge 1.8.37 2022-11-21 17:08:43 +00:00
real-time-clock 1.8.37 2022-11-21 17:08:43 +00:00
reflected-light 1.8.37 2022-11-21 17:08:43 +00:00
relay 1.8.37 2022-11-21 17:08:43 +00:00
rng 1.8.37 2022-11-21 17:08:43 +00:00
role-manager Use string constants for packing (#84) 2022-04-11 09:26:43 -07:00
rotary-encoder 1.8.37 2022-11-21 17:08:43 +00:00
rover Use string constants for packing (#84) 2022-04-11 09:26:43 -07:00
sat-nav 1.8.37 2022-11-21 17:08:43 +00:00
sensor linting 2022-05-06 14:31:26 -07:00
sensor-aggregator 1.8.37 2022-11-21 17:08:43 +00:00
servers 1.8.37 2022-11-21 17:08:43 +00:00
servo 1.8.37 2022-11-21 17:08:43 +00:00
servo-server 1.8.37 2022-11-21 17:08:43 +00:00
settings Use string constants for packing (#84) 2022-04-11 09:26:43 -07:00
settings-server Use string constants for packing (#84) 2022-04-11 09:26:43 -07:00
seven-segment-display 1.8.37 2022-11-21 17:08:43 +00:00
sim format code with prettier 2021-06-18 17:20:03 -07:00
soil-moisture 1.8.37 2022-11-21 17:08:43 +00:00
solenoid 1.8.37 2022-11-21 17:08:43 +00:00
sound-level 1.8.37 2022-11-21 17:08:43 +00:00
sound-player Use string constants for packing (#84) 2022-04-11 09:26:43 -07:00
sound-recorder-with-playback Use string constants for packing (#84) 2022-04-11 09:26:43 -07:00
sound-spectrum Use string constants for packing (#84) 2022-04-11 09:26:43 -07:00
speech-synthesis 1.8.37 2022-11-21 17:08:43 +00:00
switch 1.8.37 2022-11-21 17:08:43 +00:00
switch-button Use string constants for packing (#84) 2022-04-11 09:26:43 -07:00
system Use string constants for packing (#84) 2022-04-11 09:26:43 -07:00
tcp 1.8.37 2022-11-21 17:08:43 +00:00
temperature 1.8.37 2022-11-21 17:08:43 +00:00
timeseries-aggregator Revert "udpated constants" 2022-10-24 13:50:38 -07:00
tools 1.8.37 2022-11-21 17:08:43 +00:00
traffic-light 1.8.37 2022-11-21 17:08:43 +00:00
tvoc 1.8.37 2022-11-21 17:08:43 +00:00
unique-brain Use string constants for packing (#84) 2022-04-11 09:26:43 -07:00
usb-bridge updated tests 2022-08-16 11:26:59 -07:00
uv-index 1.8.37 2022-11-21 17:08:43 +00:00
verified-telemetry Use string constants for packing (#84) 2022-04-11 09:26:43 -07:00
vibration-motor 1.8.37 2022-11-21 17:08:43 +00:00
water-level 1.8.37 2022-11-21 17:08:43 +00:00
weight-scale 1.8.37 2022-11-21 17:08:43 +00:00
wifi 1.8.37 2022-11-21 17:08:43 +00:00
wifi-server 1.8.37 2022-11-21 17:08:43 +00:00
wind-direction 1.8.37 2022-11-21 17:08:43 +00:00
wind-speed 1.8.37 2022-11-21 17:08:43 +00:00
.clang-format Add C++ indent settings 2020-08-13 09:37:04 +02:00
.eslintrc.json moving constants from jacdac to jacdac.constants 2021-03-04 10:53:21 +01:00
.gitattributes updated attributes 2021-04-08 08:00:48 -07:00
.gitignore updated build script 2022-09-09 11:07:58 -07:00
.prettierrc format code with prettier 2021-06-18 17:20:03 -07:00
CODE_OF_CONDUCT.md Initial CODE_OF_CONDUCT.md commit 2020-06-09 17:43:42 -07:00
CONTRIBUTING.md added contributing 2021-02-28 21:59:17 +01:00
Gemfile Initial files for MakeCode project 2020-06-09 17:44:32 -07:00
JacdacBLE.cpp WIP: BLE integration (#39) 2021-05-07 08:37:03 -07:00
JacdacBLE.h WIP: BLE integration (#39) 2021-05-07 08:37:03 -07:00
LICENSE Initial LICENSE commit 2020-06-09 17:43:43 -07:00
README.md removing partner preview 2022-06-24 15:29:27 -07:00
SECURITY.md Initial SECURITY.md commit 2020-06-09 17:43:44 -07:00
_config.yml Initial files for MakeCode project 2020-06-09 17:44:32 -07:00
app.cpp avoid codal message Q overflow 2022-07-28 11:10:28 +02:00
build-sims.sh feat: updated jacdac microcode servers 2022-09-12 06:30:12 -07:00
bump.sh Revert "copy machine to jukebox" 2022-05-24 16:17:04 -07:00
commands.ts format code with prettier 2021-06-18 17:20:03 -07:00
config.ts support for esp32 (#44) 2021-08-10 22:50:01 +02:00
copy-release-files.sh machine to jukebox 2022-06-01 09:34:27 -07:00
diagnostics.ts format code with prettier 2021-06-18 17:20:03 -07:00
eventqueue.ts format code with prettier 2021-06-18 17:20:03 -07:00
eventsource.ts remove support for event.once (#90) 2022-05-31 16:16:23 -07:00
hw-esp32.c try to fix rare crash 2021-10-22 17:09:34 -07:00
hw.cpp more conservative IRQ handling 2022-07-27 16:30:49 +02:00
hw.h Mark functions as "real time" (needed on RP2040) 2021-09-24 16:52:51 -07:00
icon.png rotate logo 2021-09-10 11:30:51 -07:00
jdble.cpp WIP: BLE integration (#39) 2021-05-07 08:37:03 -07:00
jdlow.c Make more functions real-time 2021-10-05 11:56:18 -07:00
jdlow.h Rename uart_init() to uart_init_() (conflict on RP2040) 2021-09-24 16:53:07 -07:00
jdprotocol.h bring in jcdac project 2020-06-09 17:51:50 -07:00
jdsim.ts Add sim support for RGB LED in maker 2021-10-05 13:56:53 -07:00
jdutil.c Make more functions real-time 2021-10-05 11:56:18 -07:00
led.cpp don't crash if there are no LEDs 2022-08-29 13:51:40 -07:00
links.json renaming jacscript cloud -> cloud adapter 2022-09-13 11:17:46 -07:00
maker.ts Add sim support for RGB LED in maker 2021-10-05 13:56:53 -07:00
mbbridge.cpp store micro:bit jacdac xchg address in known location 2022-05-23 10:13:35 -07:00
mbbridge.h WIP: BLE integration (#39) 2021-05-07 08:37:03 -07:00
mbcompat.ts use dmesg for low level messages 2022-05-06 13:49:21 -07:00
mk.sh Revert "copy machine to jukebox" 2022-05-24 16:17:04 -07:00
mkc-arcade.json Use new "include" feature in mkc.json 2021-09-29 14:05:20 -07:00
mkc-maker.json Use new "include" feature in mkc.json 2021-09-29 14:05:20 -07:00
mkc.json remove beta 2022-06-19 17:15:07 -07:00
nonmaker.ts Add sim support for RGB LED in maker 2021-10-05 13:56:53 -07:00
ns.ts add unit in change event 2022-05-18 12:29:10 -07:00
others.txt point at makerbit repoes 2022-05-27 21:48:09 -07:00
pack.ts add clamping in jdpack() 2022-05-04 17:58:35 -07:00
packet.ts support for cloud command 2022-09-14 09:32:58 -07:00
pipes.ts more logging when throwing (#88) 2022-05-03 17:13:42 -07:00
pxt.json 1.8.37 2022-11-21 17:08:43 +00:00
rolemgr.ts add logic to enforce binding to self device (#92) 2022-06-01 17:52:12 -07:00
routing.ts feat: updated jacdac microcode servers 2022-09-12 06:30:12 -07:00
servers.ts don't surface actuatorserver 2022-05-05 14:15:27 -07:00
service.ts Use string constants for packing (#84) 2022-04-11 09:26:43 -07:00
test-others.sh Revert "copy machine to jukebox" 2022-05-24 16:17:04 -07:00
test.microbit.ts make micro:bit the default target for testing 2021-03-25 05:53:13 +01:00
test.ts support for cloud command 2022-09-14 09:32:58 -07:00
tsconfig.json Starting twin support 2021-09-01 17:40:28 -07:00
update-clients.sh feat: updated jacdac microcode servers 2022-09-12 06:30:12 -07:00
version.ts 1.8.37 2022-11-21 17:08:43 +00:00

README.md

Jacdac Services for MakeCode

This project contains Jacdac host and client services for MakeCode editors.

Using this extensions

Supported editors

Developer section

Issues are tracked at https://github.com/microsoft/jacdac/issues .

To build all projects

sh mk.sh

To bump the release, use the CLI. Don't create releases from the MakeCode built-in GitHub editors.

sh bump.sh

Run makecode --pxt-modules to create files in pxt_modules/*, which help with TypeScript auto-completion.

To refresh the constants.ts files, build jacdac-spec (yarn buildspecs from jacdac-ts) from https://github.com/microsoft/jacdac-ts .

Deploying in WSL/Codespaces

If you do not have access to USB drive, launch a local web service and download the built binary.hex

mkc build --watch --serve

then navigate to the firmware web server

Building local projects

Typically you can do ``makecode` from any subproject to build for micro:bit. To use another config, for example arcade,

makecode -c ../mkc-arcade.json

You can also add --hw d5 or --hw d5,f4,... to build for specific hardware profiles.

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.opensource.microsoft.com.

When you submit a pull request, a CLA bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.