From 03532bb56e7184433f22b55b26fd7b1b84afc5a1 Mon Sep 17 00:00:00 2001 From: Max Rothman Date: Fri, 26 Jun 2026 16:36:35 -0700 Subject: [PATCH] Add DisplayMap to OpticalStimulationConfig Adds a DisplayMap message (row_map/col_map) and an optional display_map field to OpticalStimulationConfig, for runtime-configurable optical-stim pin mapping. Index = logical row/col, value = physical chip pin; map lengths define the display dimensions. --- api/nodes/optical_stimulation.proto | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/api/nodes/optical_stimulation.proto b/api/nodes/optical_stimulation.proto index dcbfa6a..d0bef87 100644 --- a/api/nodes/optical_stimulation.proto +++ b/api/nodes/optical_stimulation.proto @@ -2,6 +2,11 @@ syntax = "proto3"; package synapse; +message DisplayMap { + repeated uint32 row_map = 1; + repeated uint32 col_map = 2; +} + message OpticalStimulationConfig { uint32 peripheral_id = 1; repeated uint32 pixel_mask = 2; @@ -9,9 +14,11 @@ message OpticalStimulationConfig { uint32 frame_rate = 4; float gain = 5; - // Instruct the FPGA to send out a 1xN vector + // Instruct the FPGA to send out a 1xN vector // where N is the number of LEDs with each Axon frame bool send_receipts = 6; + + DisplayMap display_map = 7; } // Core frame type for LED array optical stimulation