diff --git a/src/WebApi_device.cpp b/src/WebApi_device.cpp index e363869..ab403b1 100644 --- a/src/WebApi_device.cpp +++ b/src/WebApi_device.cpp @@ -55,6 +55,13 @@ void WebApiDeviceClass::onDeviceAdminGet(AsyncWebServerRequest* request) ethObj[F("type")] = pin.eth_type; ethObj[F("clk_mode")] = pin.eth_clk_mode; + JsonObject displayObj = curPin.createNestedObject("display"); + displayObj[F("type")] = pin.display_type; + displayObj[F("data")] = pin.display_data; + displayObj[F("clk")] = pin.display_clk; + displayObj[F("cs")] = pin.display_cs; + displayObj[F("reset")] = pin.display_reset; + response->setLength(); request->send(response); } diff --git a/webapp/src/components/PinInfo.vue b/webapp/src/components/PinInfo.vue index e3946b5..de7524b 100644 --- a/webapp/src/components/PinInfo.vue +++ b/webapp/src/components/PinInfo.vue @@ -80,6 +80,33 @@ {{ currentPinAssignment?.eth?.clk_mode }} + + Display + type + {{ selectedPinAssignment?.display?.type }} + {{ currentPinAssignment?.display?.type }} + + + data + {{ selectedPinAssignment?.display?.data }} + {{ currentPinAssignment?.display?.data }} + + + clk + {{ selectedPinAssignment?.display?.clk }} + {{ currentPinAssignment?.display?.clk }} + + + cs + {{ selectedPinAssignment?.display?.cs }} + {{ currentPinAssignment?.display?.cs }} + + + reset + {{ selectedPinAssignment?.display?.reset }} + {{ currentPinAssignment?.display?.reset }} + + diff --git a/webapp/src/types/PinMapping.ts b/webapp/src/types/PinMapping.ts index fa7bf49..0445c1f 100644 --- a/webapp/src/types/PinMapping.ts +++ b/webapp/src/types/PinMapping.ts @@ -17,10 +17,19 @@ export interface Ethernet { clk_mode: number; } +export interface Display { + type: number; + data: number; + clk: number; + cs: number; + reset: number; +} + export interface Device { name: string; nrf24: Nrf24; eth: Ethernet; + display: Display; } export interface PinMapping extends Array{} \ No newline at end of file