Skip to content

Commit

Permalink
webapp: define pin mapping interface for Huawei and PowerMeter
Browse files Browse the repository at this point in the history
  • Loading branch information
schlimmchen committed Dec 16, 2024
1 parent 04c77ba commit e30f83e
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions webapp/src/types/PinMapping.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,23 @@ export interface Battery {
tx: number;
}

export interface Huawei {
miso: number;
mosi: number;
clk: number;
cs: number;
irq: number;
power: number;
}

export interface PowerMeter {
rx: number;
tx: number;
dere: number;
rxen: number;
txen: number;
}

export interface Device {
name: string;
links: Array<Links>;
Expand All @@ -58,6 +75,8 @@ export interface Device {
display: Display;
victron: Victron;
battery: Battery;
huawei: Huawei;
powermeter: PowerMeter;
}

export type PinMapping = Array<Device>;

0 comments on commit e30f83e

Please sign in to comment.