wokwi-features
wokwi-features copied to clipboard
Submit data to custom chips
Is your feature request related to a problem? Please describe. When creating custom chip, we are limited to range-type controls, which makes it impossible to send complex data to the chip. According to https://docs.wokwi.com/chips-api/chip-json#controls
The type of the control. Currently, the only valid value is "range", which displays a slider
Use case All kind of external data receiver chips like RF receivers (NRF24L01), Bluetooth receivers (HC-06), LoRa receivers, etc.
Describe the solution you'd like Implement something similar to IR Receiver controls
Control definition type example:
{
id: string;
label: string;
type: 'submit'; // or trigger
fields: Array<{
label: string;
type: 'text' | 'integer';
}>;
triggerLabel: string; // 'Sent' by default
}
This will also need a change in Attributes API