@tscircuit/common 0.0.24 → 0.0.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +17 -1
- package/dist/index.js +167 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -28,7 +28,23 @@ type XiaoBoardProps = ChipProps & BoardProps & {
|
|
|
28
28
|
};
|
|
29
29
|
declare const XiaoBoard: ({ variant, withPlatedHoles, children, ...rest }: XiaoBoardProps) => react_jsx_runtime.JSX.Element;
|
|
30
30
|
|
|
31
|
-
declare const
|
|
31
|
+
declare const PIN_LABELS: {
|
|
32
|
+
readonly pin1: "A0";
|
|
33
|
+
readonly pin2: "A1";
|
|
34
|
+
readonly pin3: "A2";
|
|
35
|
+
readonly pin4: "A3";
|
|
36
|
+
readonly pin5: "SDA";
|
|
37
|
+
readonly pin6: "SCL";
|
|
38
|
+
readonly pin7: "TX";
|
|
39
|
+
readonly pin8: "VBUS";
|
|
40
|
+
readonly pin9: "GND1";
|
|
41
|
+
readonly pin10: "V3_3";
|
|
42
|
+
readonly pin11: "MOSI";
|
|
43
|
+
readonly pin12: "MISO";
|
|
44
|
+
readonly pin13: "SCK";
|
|
45
|
+
readonly pin14: "RX";
|
|
46
|
+
};
|
|
47
|
+
declare const XiaoReceiver: (props: ChipProps<typeof PIN_LABELS> & {
|
|
32
48
|
children?: any;
|
|
33
49
|
}) => react_jsx_runtime.JSX.Element;
|
|
34
50
|
|
package/dist/index.js
CHANGED
|
@@ -3313,8 +3313,174 @@ var XiaoBoard = (_a) => {
|
|
|
3313
3313
|
|
|
3314
3314
|
// lib/XiaoBoard/XiaoReceiver.circuit.tsx
|
|
3315
3315
|
var import_jsx_runtime8 = __toESM(require_jsx_runtime(), 1);
|
|
3316
|
+
var PIN_LABELS = {
|
|
3317
|
+
pin1: "A0",
|
|
3318
|
+
pin2: "A1",
|
|
3319
|
+
pin3: "A2",
|
|
3320
|
+
pin4: "A3",
|
|
3321
|
+
pin5: "SDA",
|
|
3322
|
+
pin6: "SCL",
|
|
3323
|
+
pin7: "TX",
|
|
3324
|
+
pin8: "VBUS",
|
|
3325
|
+
pin9: "GND1",
|
|
3326
|
+
pin10: "V3_3",
|
|
3327
|
+
pin11: "MOSI",
|
|
3328
|
+
pin12: "MISO",
|
|
3329
|
+
pin13: "SCK",
|
|
3330
|
+
pin14: "RX"
|
|
3331
|
+
};
|
|
3332
|
+
var PIN_ARRANGEMENT = {
|
|
3333
|
+
leftSide: {
|
|
3334
|
+
direction: "top-to-bottom",
|
|
3335
|
+
pins: ["A0", "A1", "A2", "A3", "SDA", "SCL", "TX"]
|
|
3336
|
+
},
|
|
3337
|
+
rightSide: {
|
|
3338
|
+
direction: "top-to-bottom",
|
|
3339
|
+
pins: ["RX", "SCK", "MISO", "MOSI", "V3_3", "GND1", "VBUS"]
|
|
3340
|
+
}
|
|
3341
|
+
};
|
|
3316
3342
|
var XiaoReceiver = (props) => {
|
|
3317
|
-
|
|
3343
|
+
const _a = props, { children } = _a, rest = __objRest(_a, ["children"]);
|
|
3344
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
|
|
3345
|
+
"chip",
|
|
3346
|
+
__spreadProps(__spreadValues({}, rest), {
|
|
3347
|
+
footprint: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(XiaoBoardFootprint, { variant: "Receiver" }),
|
|
3348
|
+
pinLabels: PIN_LABELS,
|
|
3349
|
+
schPinArrangement: PIN_ARRANGEMENT,
|
|
3350
|
+
schWidth: 1.5,
|
|
3351
|
+
pcbX: 0,
|
|
3352
|
+
pcbY: 0,
|
|
3353
|
+
doNotPlace: true,
|
|
3354
|
+
children: [
|
|
3355
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
3356
|
+
"silkscreenpath",
|
|
3357
|
+
{
|
|
3358
|
+
route: [
|
|
3359
|
+
{ x: -9.1166, y: -8.5345 },
|
|
3360
|
+
{ x: -9.1166, y: 8.6105 }
|
|
3361
|
+
]
|
|
3362
|
+
}
|
|
3363
|
+
),
|
|
3364
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
3365
|
+
"silkscreenpath",
|
|
3366
|
+
{
|
|
3367
|
+
route: [
|
|
3368
|
+
{ x: -7.2116, y: -10.4395 },
|
|
3369
|
+
{ x: 6.7584, y: -10.4395 }
|
|
3370
|
+
]
|
|
3371
|
+
}
|
|
3372
|
+
),
|
|
3373
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
3374
|
+
"silkscreenpath",
|
|
3375
|
+
{
|
|
3376
|
+
route: [
|
|
3377
|
+
{ x: -4.7216, y: 10.5155 },
|
|
3378
|
+
{ x: -4.717872, y: 11.525772 }
|
|
3379
|
+
]
|
|
3380
|
+
}
|
|
3381
|
+
),
|
|
3382
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
3383
|
+
"silkscreenpath",
|
|
3384
|
+
{
|
|
3385
|
+
route: [
|
|
3386
|
+
{ x: -4.217872, y: 12.0255 },
|
|
3387
|
+
{ x: 3.7774, y: 12.0255 }
|
|
3388
|
+
]
|
|
3389
|
+
}
|
|
3390
|
+
),
|
|
3391
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
3392
|
+
"silkscreenpath",
|
|
3393
|
+
{
|
|
3394
|
+
route: [
|
|
3395
|
+
{ x: 4.2774, y: 11.5255 },
|
|
3396
|
+
{ x: 4.2774, y: 10.5155 }
|
|
3397
|
+
]
|
|
3398
|
+
}
|
|
3399
|
+
),
|
|
3400
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
3401
|
+
"silkscreenpath",
|
|
3402
|
+
{
|
|
3403
|
+
route: [
|
|
3404
|
+
{ x: 6.7584, y: 10.5155 },
|
|
3405
|
+
{ x: -7.2116, y: 10.5155 }
|
|
3406
|
+
]
|
|
3407
|
+
}
|
|
3408
|
+
),
|
|
3409
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
3410
|
+
"silkscreenpath",
|
|
3411
|
+
{
|
|
3412
|
+
route: [
|
|
3413
|
+
{ x: 8.6634, y: -8.5345 },
|
|
3414
|
+
{ x: 8.6634, y: 8.6105 }
|
|
3415
|
+
]
|
|
3416
|
+
}
|
|
3417
|
+
),
|
|
3418
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
3419
|
+
"silkscreenpath",
|
|
3420
|
+
{
|
|
3421
|
+
route: [
|
|
3422
|
+
{ x: -9.1166, y: 8.6145 },
|
|
3423
|
+
{ x: -8.86137796498721, y: 9.566999698293817 },
|
|
3424
|
+
{ x: -8.164099698293818, y: 10.26427796498721 },
|
|
3425
|
+
{ x: -7.2116, y: 10.5195 }
|
|
3426
|
+
]
|
|
3427
|
+
}
|
|
3428
|
+
),
|
|
3429
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
3430
|
+
"silkscreenpath",
|
|
3431
|
+
{
|
|
3432
|
+
route: [
|
|
3433
|
+
{ x: -7.2116, y: -10.4395 },
|
|
3434
|
+
{ x: -8.164099698293818, y: -10.18427796498721 },
|
|
3435
|
+
{ x: -8.861377964987211, y: -9.486999698293818 },
|
|
3436
|
+
{ x: -9.116600000000002, y: -8.5345 }
|
|
3437
|
+
]
|
|
3438
|
+
}
|
|
3439
|
+
),
|
|
3440
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
3441
|
+
"silkscreenpath",
|
|
3442
|
+
{
|
|
3443
|
+
route: [
|
|
3444
|
+
{ x: -4.717872, y: 11.525772 },
|
|
3445
|
+
{ x: -4.217872, y: 12.025499999999997 }
|
|
3446
|
+
]
|
|
3447
|
+
}
|
|
3448
|
+
),
|
|
3449
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
3450
|
+
"silkscreenpath",
|
|
3451
|
+
{
|
|
3452
|
+
route: [
|
|
3453
|
+
{ x: 3.7774, y: 12.0255 },
|
|
3454
|
+
{ x: 4.277400000000001, y: 11.5255 }
|
|
3455
|
+
]
|
|
3456
|
+
}
|
|
3457
|
+
),
|
|
3458
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
3459
|
+
"silkscreenpath",
|
|
3460
|
+
{
|
|
3461
|
+
route: [
|
|
3462
|
+
{ x: 6.7584, y: 10.5155 },
|
|
3463
|
+
{ x: 7.710899698293817, y: 10.26027796498721 },
|
|
3464
|
+
{ x: 8.408177964987209, y: 9.562999698293817 },
|
|
3465
|
+
{ x: 8.663399999999998, y: 8.6105 }
|
|
3466
|
+
]
|
|
3467
|
+
}
|
|
3468
|
+
),
|
|
3469
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
3470
|
+
"silkscreenpath",
|
|
3471
|
+
{
|
|
3472
|
+
route: [
|
|
3473
|
+
{ x: 8.6634, y: -8.5345 },
|
|
3474
|
+
{ x: 8.40817796498721, y: -9.486999698293818 },
|
|
3475
|
+
{ x: 7.710899698293818, y: -10.184277964987212 },
|
|
3476
|
+
{ x: 6.7584, y: -10.4395 }
|
|
3477
|
+
]
|
|
3478
|
+
}
|
|
3479
|
+
),
|
|
3480
|
+
children
|
|
3481
|
+
]
|
|
3482
|
+
})
|
|
3483
|
+
);
|
|
3318
3484
|
};
|
|
3319
3485
|
|
|
3320
3486
|
// lib/ProMicroBoard/ProMicroBoardFootprint.tsx
|