JACDAC => Jacdac
This commit is contained in:
Родитель
37d747bb55
Коммит
62c629e3de
|
@ -1,6 +1,6 @@
|
|||
# JACDAC Services for MakeCode
|
||||
# Jacdac Services for MakeCode
|
||||
|
||||
This project contains [JACDAC](https://aka.ms/jacdac) host and client services for MakeCode editors.
|
||||
This project contains [Jacdac](https://aka.ms/jacdac) host and client services for MakeCode editors.
|
||||
|
||||
**This project is still under construction.**
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
namespace jacdac {
|
||||
/**
|
||||
* Gets the internal diagnostics data from the JACDAC transport layer
|
||||
* Gets the internal diagnostics data from the Jacdac transport layer
|
||||
*/
|
||||
export function diagnostics(): jacdac.JDDiagnostics {
|
||||
return new jacdac.JDDiagnostics(jacdac.__physGetDiagnostics());
|
||||
|
|
|
@ -1,22 +1,18 @@
|
|||
# JACDAC
|
||||
# Jacdac
|
||||
|
||||
## ~ hint
|
||||
|
||||
**JACDAC is still in early prototyping phase.** The protocol and all hardware design are MOST LIKELY to change during this phase. You are welcome to join us in prototyping but we strongly recommend avoiding going to production with JACDAC at the current stage.
|
||||
|
||||
To join the discussion, join us on [Discord](https://discord.gg/9WMc5Es).
|
||||
**Jacdac is still in early prototyping phase.** The protocol and all hardware design are MOST LIKELY to change during this phase. You are welcome to join us in prototyping but we strongly recommend avoiding going to production with Jacdac at the current stage.
|
||||
|
||||
## ~
|
||||
|
||||
JACDAC ([jacdac.org](https://jacdac.org)) stands for "Joint Asynchronous Communications; Device Agnostic Control.". It is a bus-based protocol to connect low powered devices.
|
||||
|
||||
### Pin configuration
|
||||
|
||||
The following pins must be configured ``config.ts`` for JACDAC to work on a board.
|
||||
The following pins must be configured ``config.ts`` for Jacdac to work on a board.
|
||||
|
||||
* ``PIN_JACK_TX``: pin with EINT, SERCOM[0]. To determine if the pin is compatible with JACDAC, consult the MCU schematics.
|
||||
* ``PIN_JACK_TX``: pin with EINT, SERCOM[0]. To determine if the pin is compatible with Jacdac, consult the MCU schematics.
|
||||
* (optional) ``PIN_JACK_COMMLED``: LED pin, blinks when packet is received or transmitted
|
||||
* (optional) ``JACK_BUSLED``: LED pin, turns on when JACDAC is connected
|
||||
* (optional) ``JACK_BUSLED``: LED pin, turns on when Jacdac is connected
|
||||
|
||||
### Simulator configuration
|
||||
|
||||
|
|
2
jdsim.ts
2
jdsim.ts
|
@ -66,7 +66,7 @@ namespace jacdac {
|
|||
}
|
||||
|
||||
/**
|
||||
* Starts the JACDAC physical layer.
|
||||
* Starts the Jacdac physical layer.
|
||||
**/
|
||||
//% shim=jacdac::__physStart
|
||||
export function __physStart(): void {
|
||||
|
|
6
ns.ts
6
ns.ts
|
@ -1,15 +1,15 @@
|
|||
/**
|
||||
* JACDAC services
|
||||
* Jacdac services
|
||||
*/
|
||||
//% weight=50 icon="\uf2db" color="#009900" advanced=true
|
||||
//% blockGap=8
|
||||
//% groups='["Broadcast", "Console", "Controller", "Services", "Control"]'
|
||||
//% blockNamespace="JACDAC"
|
||||
//% blockNamespace="Jacdac"
|
||||
namespace jacdac {
|
||||
}
|
||||
|
||||
/**
|
||||
* JACDAC modules
|
||||
* Jacdac modules
|
||||
*/
|
||||
//% weight=80 icon="\uf2db" color="#009900"
|
||||
//% blockGap=8
|
||||
|
|
|
@ -695,7 +695,7 @@ namespace jacdac {
|
|||
}
|
||||
|
||||
/**
|
||||
* Gets the JACDAC device representing the running device
|
||||
* Gets the Jacdac device representing the running device
|
||||
*/
|
||||
export function selfDevice() {
|
||||
if (!_myDevice) {
|
||||
|
@ -968,7 +968,7 @@ namespace jacdac {
|
|||
}
|
||||
|
||||
/**
|
||||
* Starts the JACDAC service
|
||||
* Starts the Jacdac service
|
||||
*/
|
||||
export function start(options?: {
|
||||
disableLogger?: boolean,
|
||||
|
|
|
@ -113,7 +113,7 @@ namespace pxsim.jacdac {
|
|||
}
|
||||
|
||||
/**
|
||||
* Returns the connection state of the JACDAC physical layer.
|
||||
* Returns the connection state of the Jacdac physical layer.
|
||||
**/
|
||||
export function __physIsConnected(): boolean {
|
||||
const state = getJacDacState();
|
||||
|
@ -129,7 +129,7 @@ namespace pxsim.jacdac {
|
|||
}
|
||||
|
||||
/**
|
||||
* Starts the JACDAC physical layer.
|
||||
* Starts the Jacdac physical layer.
|
||||
**/
|
||||
export function __physStart(): void {
|
||||
const state = getJacDacState();
|
||||
|
@ -138,7 +138,7 @@ namespace pxsim.jacdac {
|
|||
}
|
||||
|
||||
/**
|
||||
* Stops the JACDAC physical layer.
|
||||
* Stops the Jacdac physical layer.
|
||||
**/
|
||||
export function __physStop(): void {
|
||||
const state = getJacDacState();
|
||||
|
|
Загрузка…
Ссылка в новой задаче