Jacdac client services for MakeCode
Перейти к файлу
Peli de Halleux 9416442fbc updated genaiscript files 2024-07-19 03:53:46 +00:00
.devcontainer added genaiscript recommendataions 2024-03-25 08:28:34 +00:00
.github/workflows updated workflows 2024-02-11 20:29:26 +00:00
.vscode added genaiscript recommendataions 2024-03-25 08:28:34 +00:00
_locales fix for https://github.com/microsoft/jacdac/issues/1362 2024-03-17 12:27:37 +00:00
accelerometer 1.9.28 2024-03-28 18:27:24 +00:00
accelerometer-server 1.9.28 2024-03-28 18:27:24 +00:00
acidity 1.9.28 2024-03-28 18:27:24 +00:00
air-pressure 1.9.28 2024-03-28 18:27:24 +00:00
air-quality-index 1.9.28 2024-03-28 18:27:24 +00:00
analog-button Add calliopemini (#103) 2023-10-20 11:04:27 -07:00
arcade-gamepad 1.9.28 2024-03-28 18:27:24 +00:00
arcade-screen Add calliopemini (#103) 2023-10-20 11:04:27 -07:00
arcade-sound Add calliopemini (#103) 2023-10-20 11:04:27 -07:00
azure-iot-hub-health 1.9.28 2024-03-28 18:27:24 +00:00
azure-iot-hub-health-server 1.9.28 2024-03-28 18:27:24 +00:00
barcode-reader Add calliopemini (#103) 2023-10-20 11:04:27 -07:00
base add client_variant 2023-04-25 18:45:40 +00:00
bit-radio Add calliopemini (#103) 2023-10-20 11:04:27 -07:00
bluetooth-transport disable ble, always (#105) 2024-01-12 08:33:24 -08:00
bootloader refresh constants (#98) 2023-04-21 14:44:17 -07:00
braille-display 1.9.28 2024-03-28 18:27:24 +00:00
bridge Add calliopemini (#103) 2023-10-20 11:04:27 -07:00
button 1.9.28 2024-03-28 18:27:24 +00:00
button-server 1.9.28 2024-03-28 18:27:24 +00:00
buzzer 1.9.28 2024-03-28 18:27:24 +00:00
buzzer-server 1.9.28 2024-03-28 18:27:24 +00:00
capacitive-button Add calliopemini (#103) 2023-10-20 11:04:27 -07:00
character-screen 1.9.28 2024-03-28 18:27:24 +00:00
cloud-adapter 1.9.28 2024-03-28 18:27:24 +00:00
cloud-configuration Add calliopemini (#103) 2023-10-20 11:04:27 -07:00
codal-message-bus 1.9.28 2024-03-28 18:27:24 +00:00
codal-message-bus-server 1.9.28 2024-03-28 18:27:24 +00:00
color 1.9.28 2024-03-28 18:27:24 +00:00
compass 1.9.28 2024-03-28 18:27:24 +00:00
control updated constants 2023-05-02 20:50:57 +00:00
controller 1.9.28 2024-03-28 18:27:24 +00:00
dashboard Add calliopemini (#103) 2023-10-20 11:04:27 -07:00
dc-current-measurement 1.9.28 2024-03-28 18:27:24 +00:00
dc-voltage-measurement 1.9.28 2024-03-28 18:27:24 +00:00
device-script-condition Add calliopemini (#103) 2023-10-20 11:04:27 -07:00
device-script-manager Add calliopemini (#103) 2023-10-20 11:04:27 -07:00
devices/microbit 1.9.28 2024-03-28 18:27:24 +00:00
devs-dbg refresh constants (#98) 2023-04-21 14:44:17 -07:00
distance 1.9.28 2024-03-28 18:27:24 +00:00
dmx 1.9.28 2024-03-28 18:27:24 +00:00
docs add accelerometer to microcode sims 2022-09-23 04:47:37 -07:00
dot-matrix 1.9.28 2024-03-28 18:27:24 +00:00
dual-motors 1.9.28 2024-03-28 18:27:24 +00:00
e-co2 1.9.28 2024-03-28 18:27:24 +00:00
flex 1.9.28 2024-03-28 18:27:24 +00:00
gamepad 1.9.28 2024-03-28 18:27:24 +00:00
genaisrc updated genaiscript files 2024-07-19 03:53:46 +00:00
gpio Add calliopemini (#103) 2023-10-20 11:04:27 -07:00
gyroscope 1.9.28 2024-03-28 18:27:24 +00:00
heart-rate 1.9.28 2024-03-28 18:27:24 +00:00
hid-adapter Add calliopemini (#103) 2023-10-20 11:04:27 -07:00
hid-joystick 1.9.28 2024-03-28 18:27:24 +00:00
hid-joystick-server 1.9.28 2024-03-28 18:27:24 +00:00
hid-keyboard 1.9.28 2024-03-28 18:27:24 +00:00
hid-keyboard-server 1.9.28 2024-03-28 18:27:24 +00:00
hid-mouse 1.9.28 2024-03-28 18:27:24 +00:00
hid-mouse-server 1.9.28 2024-03-28 18:27:24 +00:00
humidity 1.9.28 2024-03-28 18:27:24 +00:00
i2c Add calliopemini (#103) 2023-10-20 11:04:27 -07:00
illuminance 1.9.28 2024-03-28 18:27:24 +00:00
indexed-screen Add calliopemini (#103) 2023-10-20 11:04:27 -07:00
infrastructure Add calliopemini (#103) 2023-10-20 11:04:27 -07:00
iot-hub Add calliopemini (#103) 2023-10-20 11:04:27 -07:00
keyboard ran prettier 2022-04-08 08:42:49 -07:00
keyboard-client updated specs 2024-01-09 05:03:56 +00:00
led 1.9.28 2024-03-28 18:27:24 +00:00
led-server 1.9.28 2024-03-28 18:27:24 +00:00
led-single 1.9.28 2024-03-28 18:27:24 +00:00
led-strip 1.9.28 2024-03-28 18:27:24 +00:00
light-bulb 1.9.28 2024-03-28 18:27:24 +00:00
light-level 1.9.28 2024-03-28 18:27:24 +00:00
logger refresh constants (#98) 2023-04-21 14:44:17 -07:00
logger-server Use string constants for packing (#84) 2022-04-11 09:26:43 -07:00
magnetic-field-level 1.9.28 2024-03-28 18:27:24 +00:00
magnetometer 1.9.28 2024-03-28 18:27:24 +00:00
matrix-keypad Add calliopemini (#103) 2023-10-20 11:04:27 -07:00
microphone Add calliopemini (#103) 2023-10-20 11:04:27 -07:00
midi-output Add calliopemini (#103) 2023-10-20 11:04:27 -07:00
model-runner 1.9.28 2024-03-28 18:27:24 +00:00
motion 1.9.28 2024-03-28 18:27:24 +00:00
motor 1.9.28 2024-03-28 18:27:24 +00:00
mouse ran prettier 2022-04-08 08:42:49 -07:00
multitouch 1.9.28 2024-03-28 18:27:24 +00:00
pccontroller 1.9.28 2024-03-28 18:27:24 +00:00
pcmonitor 1.9.28 2024-03-28 18:27:24 +00:00
planar-position 1.9.28 2024-03-28 18:27:24 +00:00
potentiometer 1.9.28 2024-03-28 18:27:24 +00:00
power removed power package 2023-05-18 01:39:21 +00:00
power-supply Add calliopemini (#103) 2023-10-20 11:04:27 -07:00
pressure-button Add calliopemini (#103) 2023-10-20 11:04:27 -07:00
proto-test Add calliopemini (#103) 2023-10-20 11:04:27 -07:00
proxy Add calliopemini (#103) 2023-10-20 11:04:27 -07:00
pulse-oximeter 1.9.28 2024-03-28 18:27:24 +00:00
rain-gauge 1.9.28 2024-03-28 18:27:24 +00:00
real-time-clock 1.9.28 2024-03-28 18:27:24 +00:00
reflected-light 1.9.28 2024-03-28 18:27:24 +00:00
relay 1.9.28 2024-03-28 18:27:24 +00:00
rng 1.9.28 2024-03-28 18:27:24 +00:00
role-manager Add calliopemini (#103) 2023-10-20 11:04:27 -07:00
ros Add calliopemini (#103) 2023-10-20 11:04:27 -07:00
rotary-encoder 1.9.28 2024-03-28 18:27:24 +00:00
rover Add calliopemini (#103) 2023-10-20 11:04:27 -07:00
sat-nav 1.9.28 2024-03-28 18:27:24 +00:00
sensor more robust w.r.t. to lost register get packages 2023-05-17 22:18:38 +00:00
sensor-aggregator 1.9.28 2024-03-28 18:27:24 +00:00
serial Add calliopemini (#103) 2023-10-20 11:04:27 -07:00
servers 1.9.28 2024-03-28 18:27:24 +00:00
servo 1.9.28 2024-03-28 18:27:24 +00:00
servo-server 1.9.28 2024-03-28 18:27:24 +00:00
settings Add calliopemini (#103) 2023-10-20 11:04:27 -07:00
settings-server Use string constants for packing (#84) 2022-04-11 09:26:43 -07:00
seven-segment-display 1.9.28 2024-03-28 18:27:24 +00:00
sim format code with prettier 2021-06-18 17:20:03 -07:00
soil-moisture 1.9.28 2024-03-28 18:27:24 +00:00
solenoid 1.9.28 2024-03-28 18:27:24 +00:00
sound-level 1.9.28 2024-03-28 18:27:24 +00:00
sound-player Add calliopemini (#103) 2023-10-20 11:04:27 -07:00
sound-recorder-with-playback Add calliopemini (#103) 2023-10-20 11:04:27 -07:00
sound-spectrum Add calliopemini (#103) 2023-10-20 11:04:27 -07:00
speech-synthesis 1.9.28 2024-03-28 18:27:24 +00:00
switch 1.9.28 2024-03-28 18:27:24 +00:00
switch-button Add calliopemini (#103) 2023-10-20 11:04:27 -07:00
system add client_variant 2023-04-25 18:45:40 +00:00
tcp 1.9.28 2024-03-28 18:27:24 +00:00
temperature 1.9.28 2024-03-28 18:27:24 +00:00
timeseries-aggregator Add calliopemini (#103) 2023-10-20 11:04:27 -07:00
tools 1.9.28 2024-03-28 18:27:24 +00:00
traffic-light 1.9.28 2024-03-28 18:27:24 +00:00
tvoc 1.9.28 2024-03-28 18:27:24 +00:00
unique-brain Add calliopemini (#103) 2023-10-20 11:04:27 -07:00
usb-bridge Add calliopemini (#103) 2023-10-20 11:04:27 -07:00
uv-index 1.9.28 2024-03-28 18:27:24 +00:00
verified-telemetry Add calliopemini (#103) 2023-10-20 11:04:27 -07:00
vibration-motor 1.9.28 2024-03-28 18:27:24 +00:00
water-level 1.9.28 2024-03-28 18:27:24 +00:00
weight-scale 1.9.28 2024-03-28 18:27:24 +00:00
wifi 1.9.28 2024-03-28 18:27:24 +00:00
wifi-server 1.9.28 2024-03-28 18:27:24 +00:00
wind-direction 1.9.28 2024-03-28 18:27:24 +00:00
wind-speed 1.9.28 2024-03-28 18:27:24 +00:00
wssk Add calliopemini (#103) 2023-10-20 11:04:27 -07: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 german translations (#108) 2024-03-15 08:57:28 -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 locs files (#107) 2024-03-13 12:09:13 -07: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 refresh constants (#98) 2023-04-21 14:44:17 -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
calliopemini.ts fix calliopemini product id 2023-10-25 16:19:10 +00: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
gen-locs.mjs german translations (#108) 2024-03-15 08:57:28 -07:00
gen-locs.sh german translations (#108) 2024-03-15 08:57:28 -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 fix calliopemini product id 2023-10-25 16:19:10 +00:00
microbit.ts fix calliopemini product id 2023-10-25 16:19:10 +00:00
mk.sh fix jukebox to build on calliope 2024-01-14 01:51:21 +00:00
mkc-arcade.json refresh constants (#98) 2023-04-21 14:44:17 -07:00
mkc-calliope.json target calliopemini 2023-10-25 16:24:04 +00: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.9.28 2024-03-28 18:27:24 +00:00
rolemgr.ts use srvo hint when binding roles 2023-10-27 18:50:26 +00:00
routing.ts Refactor device id query in routing.ts (#104) 2023-11-15 08:32:38 -08: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.9.28 2024-03-28 18:27:24 +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.