Jacdac client services for MakeCode
Перейти к файлу
Peli de Halleux 9416442fbc updated genaiscript files 2024-07-19 03:53:46 +00:00
.devcontainer
.github/workflows
.vscode
_locales
accelerometer
accelerometer-server
acidity
air-pressure
air-quality-index
analog-button
arcade-gamepad
arcade-screen
arcade-sound
azure-iot-hub-health
azure-iot-hub-health-server
barcode-reader
base
bit-radio
bluetooth-transport
bootloader
braille-display
bridge
button
button-server
buzzer
buzzer-server
capacitive-button
character-screen
cloud-adapter
cloud-configuration
codal-message-bus
codal-message-bus-server
color
compass
control
controller
dashboard
dc-current-measurement
dc-voltage-measurement
device-script-condition
device-script-manager
devices/microbit
devs-dbg
distance
dmx
docs
dot-matrix
dual-motors
e-co2
flex
gamepad
genaisrc
gpio
gyroscope
heart-rate
hid-adapter
hid-joystick
hid-joystick-server
hid-keyboard
hid-keyboard-server
hid-mouse
hid-mouse-server
humidity
i2c
illuminance
indexed-screen
infrastructure
iot-hub
keyboard
keyboard-client
led
led-server
led-single
led-strip
light-bulb
light-level
logger
logger-server
magnetic-field-level
magnetometer
matrix-keypad
microphone
midi-output
model-runner
motion
motor
mouse
multitouch
pccontroller
pcmonitor
planar-position
potentiometer
power
power-supply
pressure-button
proto-test
proxy
pulse-oximeter
rain-gauge
real-time-clock
reflected-light
relay
rng
role-manager
ros
rotary-encoder
rover
sat-nav
sensor
sensor-aggregator
serial
servers
servo
servo-server
settings
settings-server
seven-segment-display
sim
soil-moisture
solenoid
sound-level
sound-player
sound-recorder-with-playback
sound-spectrum
speech-synthesis
switch
switch-button
system
tcp
temperature
timeseries-aggregator
tools
traffic-light
tvoc
unique-brain
usb-bridge
uv-index
verified-telemetry
vibration-motor
water-level
weight-scale
wifi
wifi-server
wind-direction
wind-speed
wssk
.clang-format
.eslintrc.json
.gitattributes
.gitignore
.prettierrc
CODE_OF_CONDUCT.md
CONTRIBUTING.md
Gemfile
JacdacBLE.cpp
JacdacBLE.h
LICENSE
README.md
SECURITY.md
_config.yml
app.cpp
build-sims.sh
bump.sh
calliopemini.ts
commands.ts
config.ts
copy-release-files.sh
diagnostics.ts
eventqueue.ts
eventsource.ts
gen-locs.mjs
gen-locs.sh
hw-esp32.c
hw.cpp
hw.h
icon.png
jdble.cpp
jdlow.c
jdlow.h
jdprotocol.h
jdsim.ts
jdutil.c
led.cpp
links.json
maker.ts
mbbridge.cpp
mbbridge.h
mbcompat.ts
microbit.ts
mk.sh
mkc-arcade.json
mkc-calliope.json
mkc-maker.json
mkc.json
nonmaker.ts
ns.ts
others.txt
pack.ts
packet.ts
pipes.ts
pxt.json
rolemgr.ts
routing.ts
servers.ts
service.ts
test-others.sh
test.microbit.ts
test.ts
tsconfig.json
update-clients.sh
version.ts

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.