@vinjocarsales/xiao-series 0.1.4

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.
@@ -0,0 +1,7 @@
1
+ import type { CadModelProp, CommonLayoutProps } from "@tscircuit/props";
2
+ export interface XiaoEsp32C3DipProps extends CommonLayoutProps {
3
+ name: string;
4
+ cadModel?: CadModelProp;
5
+ }
6
+ export declare const XiaoEsp32C3Dip: (props: XiaoEsp32C3DipProps) => import("react").JSX.Element;
7
+ export declare const useXiaoEsp32C3Dip: <PropsFromHook extends Omit<XiaoEsp32C3DipProps, "name"> | undefined = undefined>(name: string, props?: PropsFromHook | undefined) => import("@tscircuit/core").ComponentWithPins<XiaoEsp32C3DipProps, "pin1" | "D0" | "pin2" | "D1" | "pin3" | "D2" | "pin4" | "D3" | "pin5" | "D4" | "pin6" | "D5" | "pin7" | "D6" | "pin8" | "D7" | "pin9" | "D8" | "pin10" | "D9" | "pin11" | "D10" | "pin12" | "3V3" | "pin13" | "GND" | "pin14" | "5V", PropsFromHook>;
@@ -0,0 +1,7 @@
1
+ import type { CadModelProp, CommonLayoutProps } from "@tscircuit/props";
2
+ export interface XiaoEsp32C3SmdProps extends CommonLayoutProps {
3
+ name: string;
4
+ cadModel?: CadModelProp;
5
+ }
6
+ export declare const XiaoEsp32C3Smd: (props: XiaoEsp32C3SmdProps) => import("react").JSX.Element;
7
+ export declare const useXiaoEsp32C3Smd: <PropsFromHook extends Omit<XiaoEsp32C3SmdProps, "name"> | undefined = undefined>(name: string, props?: PropsFromHook | undefined) => import("@tscircuit/core").ComponentWithPins<XiaoEsp32C3SmdProps, "pin1" | "D0" | "pin2" | "D1" | "pin3" | "D2" | "pin4" | "D3" | "pin5" | "D4" | "pin6" | "D5" | "pin7" | "D6" | "pin8" | "D7" | "pin9" | "D8" | "pin10" | "D9" | "pin11" | "D10" | "pin12" | "3V3" | "pin13" | "GND" | "pin14" | "5V", PropsFromHook>;
@@ -0,0 +1,6 @@
1
+ import type { CommonLayoutProps } from "@tscircuit/props";
2
+ export interface XiaoEsp32S3DipProps extends CommonLayoutProps {
3
+ name: string;
4
+ }
5
+ export declare const XiaoEsp32S3Dip: (props: XiaoEsp32S3DipProps) => import("react").JSX.Element;
6
+ export declare const useXiaoEsp32S3Dip: <PropsFromHook extends Omit<XiaoEsp32S3DipProps, "name"> | undefined = undefined>(name: string, props?: PropsFromHook | undefined) => import("@tscircuit/core").ComponentWithPins<XiaoEsp32S3DipProps, "pin1" | "D0" | "pin2" | "D1" | "pin3" | "D2" | "pin4" | "D3" | "pin5" | "D4" | "pin6" | "D5" | "pin7" | "D6" | "pin8" | "D7" | "pin9" | "D8" | "pin10" | "D9" | "pin11" | "D10" | "pin12" | "3V3" | "pin13" | "GND" | "pin14" | "VBUS", PropsFromHook>;
@@ -0,0 +1,6 @@
1
+ import type { CommonLayoutProps } from "@tscircuit/props";
2
+ export interface XiaoEsp32S3SmdProps extends CommonLayoutProps {
3
+ name: string;
4
+ }
5
+ export declare const XiaoEsp32S3Smd: (props: XiaoEsp32S3SmdProps) => import("react").JSX.Element;
6
+ export declare const useXiaoEsp32S3Smd: <PropsFromHook extends Omit<XiaoEsp32S3SmdProps, "name"> | undefined = undefined>(name: string, props?: PropsFromHook | undefined) => import("@tscircuit/core").ComponentWithPins<XiaoEsp32S3SmdProps, "pin1" | "D0" | "pin2" | "D1" | "pin3" | "D2" | "pin4" | "D3" | "pin5" | "D4" | "pin6" | "D5" | "pin7" | "D6" | "pin8" | "D7" | "pin9" | "D8" | "pin10" | "D9" | "pin11" | "D10" | "pin12" | "3V3" | "pin13" | "GND" | "pin14" | "VBUS", PropsFromHook>;
@@ -0,0 +1,16 @@
1
+ export declare const xiaoEsp32C3CadModel: {
2
+ stepUrl: string;
3
+ modelUnitToMmScale: number;
4
+ modelBoardNormalDirection: "z+";
5
+ zOffsetFromSurface: string;
6
+ rotationOffset: {
7
+ x: number;
8
+ y: number;
9
+ z: number;
10
+ };
11
+ positionOffset: {
12
+ x: number;
13
+ y: number;
14
+ z: number;
15
+ };
16
+ };
@@ -0,0 +1,4 @@
1
+ export declare const xiaoEsp32S3DipFootprint: import("react").JSX.Element;
2
+ export declare const xiaoEsp32C3DipFootprint: import("react").JSX.Element;
3
+ export declare const xiaoEsp32S3SmdFootprint: import("react").JSX.Element;
4
+ export declare const xiaoEsp32C3SmdFootprint: import("react").JSX.Element;
package/dist/index.cjs ADDED
@@ -0,0 +1,424 @@
1
+ 'use strict';
2
+
3
+ var jsxRuntime = require('react/jsx-runtime');
4
+ var core = require('@tscircuit/core');
5
+
6
+ const xiaoEsp32C3StepUrl = "https://unpkg.com/@vinjocarsales/xiao-series/assets/xiao-esp32-c3.step";
7
+ const xiaoEsp32C3CadModel = {
8
+ stepUrl: xiaoEsp32C3StepUrl,
9
+ modelUnitToMmScale: 1,
10
+ modelBoardNormalDirection: "z+",
11
+ zOffsetFromSurface: "0mm",
12
+ rotationOffset: { x: 90, y: 90, z: 0 },
13
+ positionOffset: { x: 6, y: -2, z: 0 },
14
+ };
15
+
16
+ const xiaoDipPads = [
17
+ { pin: "pin1", label: "D0", x: -7.62, y: 7.6835 },
18
+ { pin: "pin2", label: "D1", x: -7.62, y: 5.1435 },
19
+ { pin: "pin3", label: "D2", x: -7.62, y: 2.6035 },
20
+ { pin: "pin4", label: "D3", x: -7.62, y: 0.0635 },
21
+ { pin: "pin5", label: "D4", x: -7.62, y: -2.4765 },
22
+ { pin: "pin6", label: "D5", x: -7.62, y: -5.0165 },
23
+ { pin: "pin7", label: "D6", x: -7.62, y: -7.5565 },
24
+ { pin: "pin8", label: "D7", x: 7.62, y: -7.5565 },
25
+ { pin: "pin9", label: "D8", x: 7.62, y: -5.0165 },
26
+ { pin: "pin10", label: "D9", x: 7.62, y: -2.4765 },
27
+ { pin: "pin11", label: "D10", x: 7.62, y: 0.0635 },
28
+ { pin: "pin12", label: "3V3", x: 7.62, y: 2.6035 },
29
+ { pin: "pin13", label: "GND", x: 7.62, y: 5.1435 },
30
+ { pin: "pin14", label: "VBUS", x: 7.62, y: 7.6835 },
31
+ ];
32
+ const xiaoEsp32C3DipPads = xiaoDipPads.map((pad) => pad.pin === "pin14" ? { ...pad, label: "5V" } : pad);
33
+ const xiaoEsp32C3SmdPads = [
34
+ {
35
+ pin: "pin1",
36
+ label: "D0",
37
+ x: -8.0825,
38
+ y: 7.62,
39
+ width: 2.75,
40
+ height: 2,
41
+ shape: "rect",
42
+ cornerRadius: 0.5,
43
+ },
44
+ {
45
+ pin: "pin2",
46
+ label: "D1",
47
+ x: -8.0825,
48
+ y: 5.08,
49
+ width: 2.75,
50
+ height: 2,
51
+ shape: "rect",
52
+ cornerRadius: 0.5,
53
+ },
54
+ {
55
+ pin: "pin3",
56
+ label: "D2",
57
+ x: -8.0825,
58
+ y: 2.54,
59
+ width: 2.75,
60
+ height: 2,
61
+ shape: "rect",
62
+ cornerRadius: 0.5,
63
+ },
64
+ {
65
+ pin: "pin4",
66
+ label: "D3",
67
+ x: -8.0825,
68
+ y: 0,
69
+ width: 2.75,
70
+ height: 2,
71
+ shape: "rect",
72
+ cornerRadius: 0.5,
73
+ },
74
+ {
75
+ pin: "pin5",
76
+ label: "D4",
77
+ x: -8.0825,
78
+ y: -2.54,
79
+ width: 2.75,
80
+ height: 2,
81
+ shape: "rect",
82
+ cornerRadius: 0.5,
83
+ },
84
+ {
85
+ pin: "pin6",
86
+ label: "D5",
87
+ x: -8.0825,
88
+ y: -5.08,
89
+ width: 2.75,
90
+ height: 2,
91
+ shape: "rect",
92
+ cornerRadius: 0.5,
93
+ },
94
+ {
95
+ pin: "pin7",
96
+ label: "D6",
97
+ x: -8.0825,
98
+ y: -7.62,
99
+ width: 2.75,
100
+ height: 2,
101
+ shape: "rect",
102
+ cornerRadius: 0.5,
103
+ },
104
+ {
105
+ pin: "pin8",
106
+ label: "D7",
107
+ x: 8.0825,
108
+ y: -7.62,
109
+ width: 2.75,
110
+ height: 2,
111
+ shape: "rect",
112
+ cornerRadius: 0.5,
113
+ },
114
+ {
115
+ pin: "pin9",
116
+ label: "D8",
117
+ x: 8.0825,
118
+ y: -5.08,
119
+ width: 2.75,
120
+ height: 2,
121
+ shape: "rect",
122
+ cornerRadius: 0.5,
123
+ },
124
+ {
125
+ pin: "pin10",
126
+ label: "D9",
127
+ x: 8.0825,
128
+ y: -2.54,
129
+ width: 2.75,
130
+ height: 2,
131
+ shape: "rect",
132
+ cornerRadius: 0.5,
133
+ },
134
+ {
135
+ pin: "pin11",
136
+ label: "D10",
137
+ x: 8.0825,
138
+ y: 0,
139
+ width: 2.75,
140
+ height: 2,
141
+ shape: "rect",
142
+ cornerRadius: 0.5,
143
+ },
144
+ {
145
+ pin: "pin12",
146
+ label: "3V3",
147
+ x: 8.0825,
148
+ y: 2.54,
149
+ width: 2.75,
150
+ height: 2,
151
+ shape: "rect",
152
+ cornerRadius: 0.5,
153
+ },
154
+ {
155
+ pin: "pin13",
156
+ label: "GND",
157
+ x: 8.0825,
158
+ y: 5.08,
159
+ width: 2.75,
160
+ height: 2,
161
+ shape: "rect",
162
+ cornerRadius: 0.5,
163
+ },
164
+ {
165
+ pin: "pin14",
166
+ label: "5V",
167
+ x: 8.0825,
168
+ y: 7.62,
169
+ width: 2.75,
170
+ height: 2,
171
+ shape: "rect",
172
+ cornerRadius: 0.5,
173
+ },
174
+ {
175
+ pin: "pin15",
176
+ label: "TP15",
177
+ x: -1.2975,
178
+ y: 8.632,
179
+ width: 1.7,
180
+ height: 1.7,
181
+ shape: "circle",
182
+ },
183
+ {
184
+ pin: "pin16",
185
+ label: "TP16",
186
+ x: 1.2425,
187
+ y: 8.632,
188
+ width: 1.7,
189
+ height: 1.7,
190
+ shape: "circle",
191
+ },
192
+ {
193
+ pin: "pin17",
194
+ label: "TP17",
195
+ x: -1.2975,
196
+ y: 6.092,
197
+ width: 1.7,
198
+ height: 1.7,
199
+ shape: "circle",
200
+ },
201
+ {
202
+ pin: "pin18",
203
+ label: "TP18",
204
+ x: 1.2425,
205
+ y: 6.092,
206
+ width: 1.7,
207
+ height: 1.7,
208
+ shape: "circle",
209
+ },
210
+ {
211
+ pin: "pin19",
212
+ label: "TP19",
213
+ x: -1.2975,
214
+ y: 3.552,
215
+ width: 1.7,
216
+ height: 1.7,
217
+ shape: "circle",
218
+ },
219
+ {
220
+ pin: "pin20",
221
+ label: "TP20",
222
+ x: 1.2425,
223
+ y: 3.552,
224
+ width: 1.7,
225
+ height: 1.7,
226
+ shape: "circle",
227
+ },
228
+ {
229
+ pin: "pin21",
230
+ label: "TP21",
231
+ x: -4.4725,
232
+ y: 0.382,
233
+ width: 2.5,
234
+ height: 1.1,
235
+ shape: "rect",
236
+ cornerRadius: 0.275,
237
+ },
238
+ {
239
+ pin: "pin22",
240
+ label: "TP22",
241
+ x: -4.4725,
242
+ y: 2.287,
243
+ width: 2.5,
244
+ height: 1.1,
245
+ shape: "rect",
246
+ cornerRadius: 0.275,
247
+ },
248
+ ];
249
+ const outlineRoute = [
250
+ { x: -10.55, y: 8.9 },
251
+ { x: 10.55, y: 8.9 },
252
+ { x: 10.55, y: -8.9 },
253
+ { x: -10.55, y: -8.9 },
254
+ { x: -10.55, y: 8.9 },
255
+ ];
256
+ const usbEdgeRoute = [
257
+ { x: -3.8, y: 8.9 },
258
+ { x: -3.8, y: 7.4 },
259
+ { x: 3.8, y: 7.4 },
260
+ { x: 3.8, y: 8.9 },
261
+ ];
262
+ const pin1MarkerRoute = [
263
+ { x: -7.2, y: 8.7 },
264
+ { x: -6.4, y: 8.7 },
265
+ { x: -6.4, y: 7.9 },
266
+ { x: -7.2, y: 7.9 },
267
+ { x: -7.2, y: 8.7 },
268
+ ];
269
+ const renderSilkscreen = () => (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx("silkscreenpath", { route: outlineRoute }), jsxRuntime.jsx("silkscreenpath", { route: usbEdgeRoute }), jsxRuntime.jsx("silkscreenpath", { route: pin1MarkerRoute })] }));
270
+ const renderDipPads = (pads) => pads.map(({ pin, label, x, y }) => (jsxRuntime.jsx("platedhole", { pcbX: `${x}mm`, pcbY: `${y}mm`, shape: "circle", holeDiameter: "1mm", outerDiameter: "1.8mm", portHints: [pin, label] })));
271
+ const renderSmdPads = (pads) => pads.map(({ pin, label, x, y, width = 2.75, height = 2, shape = "rect", cornerRadius, radius, }) => shape === "circle" ? (jsxRuntime.jsx("smtpad", { pcbX: `${x}mm`, pcbY: `${y}mm`, layer: "top", shape: "circle", radius: `${radius ?? width / 2}mm`, portHints: [pin, label] })) : (jsxRuntime.jsx("smtpad", { pcbX: `${x}mm`, pcbY: `${y}mm`, layer: "top", shape: "rect", width: `${width}mm`, height: `${height}mm`, cornerRadius: cornerRadius ? `${cornerRadius}mm` : undefined, portHints: [pin, label] })));
272
+ const xiaoEsp32S3DipFootprint = (jsxRuntime.jsxs("footprint", { children: [renderDipPads(xiaoDipPads), renderSilkscreen()] }));
273
+ const xiaoEsp32C3DipFootprint = (jsxRuntime.jsxs("footprint", { children: [renderDipPads(xiaoEsp32C3DipPads), renderSilkscreen()] }));
274
+ const xiaoEsp32S3SmdFootprint = (jsxRuntime.jsxs("footprint", { children: [renderSmdPads(xiaoDipPads), renderSilkscreen()] }));
275
+ const xiaoEsp32C3SmdFootprint = (jsxRuntime.jsxs("footprint", { children: [renderSmdPads(xiaoEsp32C3SmdPads), renderSilkscreen()] }));
276
+
277
+ const xiaoEsp32S3PinLabels = {
278
+ pin1: "D0",
279
+ pin2: "D1",
280
+ pin3: "D2",
281
+ pin4: "D3",
282
+ pin5: "D4",
283
+ pin6: "D5",
284
+ pin7: "D6",
285
+ pin8: "D7",
286
+ pin9: "D8",
287
+ pin10: "D9",
288
+ pin11: "D10",
289
+ pin12: "3V3",
290
+ pin13: "GND",
291
+ pin14: "VBUS",
292
+ };
293
+ const xiaoEsp32C3PinLabels = {
294
+ pin1: "D0",
295
+ pin2: "D1",
296
+ pin3: "D2",
297
+ pin4: "D3",
298
+ pin5: "D4",
299
+ pin6: "D5",
300
+ pin7: "D6",
301
+ pin8: "D7",
302
+ pin9: "D8",
303
+ pin10: "D9",
304
+ pin11: "D10",
305
+ pin12: "3V3",
306
+ pin13: "GND",
307
+ pin14: "5V",
308
+ };
309
+ const xiaoEsp32S3HookPins = {
310
+ pin1: ["D0"],
311
+ pin2: ["D1"],
312
+ pin3: ["D2"],
313
+ pin4: ["D3"],
314
+ pin5: ["D4"],
315
+ pin6: ["D5"],
316
+ pin7: ["D6"],
317
+ pin8: ["D7"],
318
+ pin9: ["D8"],
319
+ pin10: ["D9"],
320
+ pin11: ["D10"],
321
+ pin12: ["3V3"],
322
+ pin13: ["GND"],
323
+ pin14: ["VBUS"],
324
+ };
325
+ const xiaoEsp32C3HookPins = {
326
+ pin1: ["D0"],
327
+ pin2: ["D1"],
328
+ pin3: ["D2"],
329
+ pin4: ["D3"],
330
+ pin5: ["D4"],
331
+ pin6: ["D5"],
332
+ pin7: ["D6"],
333
+ pin8: ["D7"],
334
+ pin9: ["D8"],
335
+ pin10: ["D9"],
336
+ pin11: ["D10"],
337
+ pin12: ["3V3"],
338
+ pin13: ["GND"],
339
+ pin14: ["5V"],
340
+ };
341
+ const xiaoEsp32S3PinAttributes = {
342
+ "3V3": {
343
+ providesPower: true,
344
+ providesVoltage: "3.3V",
345
+ includeInBoardPinout: true,
346
+ },
347
+ GND: {
348
+ providesGround: true,
349
+ includeInBoardPinout: true,
350
+ },
351
+ VBUS: {
352
+ providesPower: true,
353
+ providesVoltage: "5V",
354
+ includeInBoardPinout: true,
355
+ },
356
+ };
357
+ const xiaoEsp32C3PinAttributes = {
358
+ "3V3": {
359
+ providesPower: true,
360
+ providesVoltage: "3.3V",
361
+ includeInBoardPinout: true,
362
+ },
363
+ GND: {
364
+ providesGround: true,
365
+ includeInBoardPinout: true,
366
+ },
367
+ "5V": {
368
+ providesPower: true,
369
+ providesVoltage: "5V",
370
+ includeInBoardPinout: true,
371
+ },
372
+ };
373
+ const xiaoSchPinArrangement = {
374
+ leftSide: {
375
+ direction: "top-to-bottom",
376
+ pins: ["D0", "D1", "D2", "D3", "D4", "D5", "D6"],
377
+ },
378
+ rightSide: {
379
+ direction: "bottom-to-top",
380
+ pins: ["D7", "D8", "D9", "D10", "3V3", "GND", "VBUS"],
381
+ },
382
+ };
383
+ const xiaoEsp32C3SchPinArrangement = {
384
+ leftSide: {
385
+ direction: "top-to-bottom",
386
+ pins: ["D0", "D1", "D2", "D3", "D4", "D5", "D6"],
387
+ },
388
+ rightSide: {
389
+ direction: "bottom-to-top",
390
+ pins: ["D7", "D8", "D9", "D10", "3V3", "GND", "5V"],
391
+ },
392
+ };
393
+
394
+ const XiaoEsp32C3Dip = (props) => (jsxRuntime.jsx("chip", { footprint: xiaoEsp32C3DipFootprint, pinLabels: xiaoEsp32C3PinLabels, pinAttributes: xiaoEsp32C3PinAttributes, schPinArrangement: xiaoEsp32C3SchPinArrangement, schWidth: "11mm", schHeight: "22mm", cadModel: xiaoEsp32C3CadModel, ...props }));
395
+ const useXiaoEsp32C3Dip = core.createUseComponent(XiaoEsp32C3Dip, xiaoEsp32C3HookPins);
396
+
397
+ const XiaoEsp32C3Smd = (props) => (jsxRuntime.jsx("chip", { footprint: xiaoEsp32C3SmdFootprint, pinLabels: xiaoEsp32C3PinLabels, pinAttributes: xiaoEsp32C3PinAttributes, schPinArrangement: xiaoEsp32C3SchPinArrangement, schWidth: "11mm", schHeight: "22mm", cadModel: xiaoEsp32C3CadModel, ...props }));
398
+ const useXiaoEsp32C3Smd = core.createUseComponent(XiaoEsp32C3Smd, xiaoEsp32C3HookPins);
399
+
400
+ const XiaoEsp32S3Dip = (props) => (jsxRuntime.jsx("chip", { footprint: xiaoEsp32S3DipFootprint, pinLabels: xiaoEsp32S3PinLabels, pinAttributes: xiaoEsp32S3PinAttributes, schPinArrangement: xiaoSchPinArrangement, schWidth: "11mm", schHeight: "22mm", ...props }));
401
+ const useXiaoEsp32S3Dip = core.createUseComponent(XiaoEsp32S3Dip, xiaoEsp32S3HookPins);
402
+
403
+ const XiaoEsp32S3Smd = (props) => (jsxRuntime.jsx("chip", { footprint: xiaoEsp32S3SmdFootprint, pinLabels: xiaoEsp32S3PinLabels, pinAttributes: xiaoEsp32S3PinAttributes, schPinArrangement: xiaoSchPinArrangement, schWidth: "11mm", schHeight: "22mm", ...props }));
404
+ const useXiaoEsp32S3Smd = core.createUseComponent(XiaoEsp32S3Smd, xiaoEsp32S3HookPins);
405
+
406
+ exports.XiaoEsp32C3Dip = XiaoEsp32C3Dip;
407
+ exports.XiaoEsp32C3Smd = XiaoEsp32C3Smd;
408
+ exports.XiaoEsp32S3Dip = XiaoEsp32S3Dip;
409
+ exports.XiaoEsp32S3Smd = XiaoEsp32S3Smd;
410
+ exports.useXiaoEsp32C3Dip = useXiaoEsp32C3Dip;
411
+ exports.useXiaoEsp32C3Smd = useXiaoEsp32C3Smd;
412
+ exports.useXiaoEsp32S3Dip = useXiaoEsp32S3Dip;
413
+ exports.useXiaoEsp32S3Smd = useXiaoEsp32S3Smd;
414
+ exports.xiaoEsp32C3CadModel = xiaoEsp32C3CadModel;
415
+ exports.xiaoEsp32C3DipFootprint = xiaoEsp32C3DipFootprint;
416
+ exports.xiaoEsp32C3HookPins = xiaoEsp32C3HookPins;
417
+ exports.xiaoEsp32C3PinAttributes = xiaoEsp32C3PinAttributes;
418
+ exports.xiaoEsp32C3PinLabels = xiaoEsp32C3PinLabels;
419
+ exports.xiaoEsp32C3SmdFootprint = xiaoEsp32C3SmdFootprint;
420
+ exports.xiaoEsp32S3DipFootprint = xiaoEsp32S3DipFootprint;
421
+ exports.xiaoEsp32S3HookPins = xiaoEsp32S3HookPins;
422
+ exports.xiaoEsp32S3PinAttributes = xiaoEsp32S3PinAttributes;
423
+ exports.xiaoEsp32S3PinLabels = xiaoEsp32S3PinLabels;
424
+ exports.xiaoEsp32S3SmdFootprint = xiaoEsp32S3SmdFootprint;
@@ -0,0 +1,151 @@
1
+ import * as _tscircuit_core from '@tscircuit/core';
2
+ import * as react from 'react';
3
+ import { CommonLayoutProps, CadModelProp } from '@tscircuit/props';
4
+
5
+ interface XiaoEsp32C3DipProps extends CommonLayoutProps {
6
+ name: string;
7
+ cadModel?: CadModelProp;
8
+ }
9
+ declare const XiaoEsp32C3Dip: (props: XiaoEsp32C3DipProps) => any;
10
+ declare const useXiaoEsp32C3Dip: <PropsFromHook extends Omit<XiaoEsp32C3DipProps, "name"> | undefined = undefined>(name: string, props?: PropsFromHook | undefined) => _tscircuit_core.ComponentWithPins<XiaoEsp32C3DipProps, "D0" | "D1" | "D2" | "D3" | "D4" | "D5" | "D6" | "D7" | "D8" | "D9" | "D10" | "3V3" | "GND" | "5V" | "pin1" | "pin2" | "pin3" | "pin4" | "pin5" | "pin6" | "pin7" | "pin8" | "pin9" | "pin10" | "pin11" | "pin12" | "pin13" | "pin14", PropsFromHook>;
11
+
12
+ interface XiaoEsp32C3SmdProps extends CommonLayoutProps {
13
+ name: string;
14
+ cadModel?: CadModelProp;
15
+ }
16
+ declare const XiaoEsp32C3Smd: (props: XiaoEsp32C3SmdProps) => any;
17
+ declare const useXiaoEsp32C3Smd: <PropsFromHook extends Omit<XiaoEsp32C3SmdProps, "name"> | undefined = undefined>(name: string, props?: PropsFromHook | undefined) => _tscircuit_core.ComponentWithPins<XiaoEsp32C3SmdProps, "D0" | "D1" | "D2" | "D3" | "D4" | "D5" | "D6" | "D7" | "D8" | "D9" | "D10" | "3V3" | "GND" | "5V" | "pin1" | "pin2" | "pin3" | "pin4" | "pin5" | "pin6" | "pin7" | "pin8" | "pin9" | "pin10" | "pin11" | "pin12" | "pin13" | "pin14", PropsFromHook>;
18
+
19
+ interface XiaoEsp32S3DipProps extends CommonLayoutProps {
20
+ name: string;
21
+ }
22
+ declare const XiaoEsp32S3Dip: (props: XiaoEsp32S3DipProps) => any;
23
+ declare const useXiaoEsp32S3Dip: <PropsFromHook extends Omit<XiaoEsp32S3DipProps, "name"> | undefined = undefined>(name: string, props?: PropsFromHook | undefined) => _tscircuit_core.ComponentWithPins<XiaoEsp32S3DipProps, "D0" | "D1" | "D2" | "D3" | "D4" | "D5" | "D6" | "D7" | "D8" | "D9" | "D10" | "3V3" | "GND" | "VBUS" | "pin1" | "pin2" | "pin3" | "pin4" | "pin5" | "pin6" | "pin7" | "pin8" | "pin9" | "pin10" | "pin11" | "pin12" | "pin13" | "pin14", PropsFromHook>;
24
+
25
+ interface XiaoEsp32S3SmdProps extends CommonLayoutProps {
26
+ name: string;
27
+ }
28
+ declare const XiaoEsp32S3Smd: (props: XiaoEsp32S3SmdProps) => any;
29
+ declare const useXiaoEsp32S3Smd: <PropsFromHook extends Omit<XiaoEsp32S3SmdProps, "name"> | undefined = undefined>(name: string, props?: PropsFromHook | undefined) => _tscircuit_core.ComponentWithPins<XiaoEsp32S3SmdProps, "D0" | "D1" | "D2" | "D3" | "D4" | "D5" | "D6" | "D7" | "D8" | "D9" | "D10" | "3V3" | "GND" | "VBUS" | "pin1" | "pin2" | "pin3" | "pin4" | "pin5" | "pin6" | "pin7" | "pin8" | "pin9" | "pin10" | "pin11" | "pin12" | "pin13" | "pin14", PropsFromHook>;
30
+
31
+ declare const xiaoEsp32S3DipFootprint: any;
32
+ declare const xiaoEsp32C3DipFootprint: any;
33
+ declare const xiaoEsp32S3SmdFootprint: any;
34
+ declare const xiaoEsp32C3SmdFootprint: any;
35
+
36
+ declare const xiaoEsp32S3PinLabels: {
37
+ readonly pin1: "D0";
38
+ readonly pin2: "D1";
39
+ readonly pin3: "D2";
40
+ readonly pin4: "D3";
41
+ readonly pin5: "D4";
42
+ readonly pin6: "D5";
43
+ readonly pin7: "D6";
44
+ readonly pin8: "D7";
45
+ readonly pin9: "D8";
46
+ readonly pin10: "D9";
47
+ readonly pin11: "D10";
48
+ readonly pin12: "3V3";
49
+ readonly pin13: "GND";
50
+ readonly pin14: "VBUS";
51
+ };
52
+ declare const xiaoEsp32C3PinLabels: {
53
+ readonly pin1: "D0";
54
+ readonly pin2: "D1";
55
+ readonly pin3: "D2";
56
+ readonly pin4: "D3";
57
+ readonly pin5: "D4";
58
+ readonly pin6: "D5";
59
+ readonly pin7: "D6";
60
+ readonly pin8: "D7";
61
+ readonly pin9: "D8";
62
+ readonly pin10: "D9";
63
+ readonly pin11: "D10";
64
+ readonly pin12: "3V3";
65
+ readonly pin13: "GND";
66
+ readonly pin14: "5V";
67
+ };
68
+ declare const xiaoEsp32S3HookPins: {
69
+ readonly pin1: readonly ["D0"];
70
+ readonly pin2: readonly ["D1"];
71
+ readonly pin3: readonly ["D2"];
72
+ readonly pin4: readonly ["D3"];
73
+ readonly pin5: readonly ["D4"];
74
+ readonly pin6: readonly ["D5"];
75
+ readonly pin7: readonly ["D6"];
76
+ readonly pin8: readonly ["D7"];
77
+ readonly pin9: readonly ["D8"];
78
+ readonly pin10: readonly ["D9"];
79
+ readonly pin11: readonly ["D10"];
80
+ readonly pin12: readonly ["3V3"];
81
+ readonly pin13: readonly ["GND"];
82
+ readonly pin14: readonly ["VBUS"];
83
+ };
84
+ declare const xiaoEsp32C3HookPins: {
85
+ readonly pin1: readonly ["D0"];
86
+ readonly pin2: readonly ["D1"];
87
+ readonly pin3: readonly ["D2"];
88
+ readonly pin4: readonly ["D3"];
89
+ readonly pin5: readonly ["D4"];
90
+ readonly pin6: readonly ["D5"];
91
+ readonly pin7: readonly ["D6"];
92
+ readonly pin8: readonly ["D7"];
93
+ readonly pin9: readonly ["D8"];
94
+ readonly pin10: readonly ["D9"];
95
+ readonly pin11: readonly ["D10"];
96
+ readonly pin12: readonly ["3V3"];
97
+ readonly pin13: readonly ["GND"];
98
+ readonly pin14: readonly ["5V"];
99
+ };
100
+ declare const xiaoEsp32S3PinAttributes: {
101
+ "3V3": {
102
+ providesPower: true;
103
+ providesVoltage: string;
104
+ includeInBoardPinout: true;
105
+ };
106
+ GND: {
107
+ providesGround: true;
108
+ includeInBoardPinout: true;
109
+ };
110
+ VBUS: {
111
+ providesPower: true;
112
+ providesVoltage: string;
113
+ includeInBoardPinout: true;
114
+ };
115
+ };
116
+ declare const xiaoEsp32C3PinAttributes: {
117
+ "3V3": {
118
+ providesPower: true;
119
+ providesVoltage: string;
120
+ includeInBoardPinout: true;
121
+ };
122
+ GND: {
123
+ providesGround: true;
124
+ includeInBoardPinout: true;
125
+ };
126
+ "5V": {
127
+ providesPower: true;
128
+ providesVoltage: string;
129
+ includeInBoardPinout: true;
130
+ };
131
+ };
132
+
133
+ declare const xiaoEsp32C3CadModel: {
134
+ stepUrl: string;
135
+ modelUnitToMmScale: number;
136
+ modelBoardNormalDirection: "z+";
137
+ zOffsetFromSurface: string;
138
+ rotationOffset: {
139
+ x: number;
140
+ y: number;
141
+ z: number;
142
+ };
143
+ positionOffset: {
144
+ x: number;
145
+ y: number;
146
+ z: number;
147
+ };
148
+ };
149
+
150
+ export { XiaoEsp32C3Dip, XiaoEsp32C3Smd, XiaoEsp32S3Dip, XiaoEsp32S3Smd, useXiaoEsp32C3Dip, useXiaoEsp32C3Smd, useXiaoEsp32S3Dip, useXiaoEsp32S3Smd, xiaoEsp32C3CadModel, xiaoEsp32C3DipFootprint, xiaoEsp32C3HookPins, xiaoEsp32C3PinAttributes, xiaoEsp32C3PinLabels, xiaoEsp32C3SmdFootprint, xiaoEsp32S3DipFootprint, xiaoEsp32S3HookPins, xiaoEsp32S3PinAttributes, xiaoEsp32S3PinLabels, xiaoEsp32S3SmdFootprint };
151
+ export type { XiaoEsp32C3DipProps, XiaoEsp32C3SmdProps, XiaoEsp32S3DipProps, XiaoEsp32S3SmdProps };