progress on mcus
This commit is contained in:
parent
b1c92296a6
commit
f27dbcee8c
2 changed files with 38 additions and 19 deletions
|
@ -6,9 +6,9 @@ export interface MCU_Type {
|
|||
bluetooth?: { [key: string]: Number };
|
||||
}
|
||||
|
||||
export const MCUs: MCU_Type[] = [
|
||||
const MCUs: MCU_Type[] = [
|
||||
{
|
||||
name: "ESP32-S3",
|
||||
name: "esp32-s3",
|
||||
cpu: { // mili amps
|
||||
single_core_40MHz: 21.8,
|
||||
dual_core_40MHz: 24.4,
|
||||
|
@ -33,7 +33,7 @@ export const MCUs: MCU_Type[] = [
|
|||
},
|
||||
|
||||
{
|
||||
name: "ESP32-C3",
|
||||
name: "esp32-c3",
|
||||
cpu: {
|
||||
single_core_80MHz: 22,
|
||||
single_core_160MHz: 54.6,
|
||||
|
@ -51,3 +51,13 @@ export const MCUs: MCU_Type[] = [
|
|||
}
|
||||
}
|
||||
];
|
||||
|
||||
export function getMCU(name: string): MCU_Type | undefined{
|
||||
for (let i = 0; i < MCUs.length; i++) {
|
||||
const element = MCUs[i];
|
||||
if (element.name == name)
|
||||
return element
|
||||
}
|
||||
|
||||
return undefined;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue