JSON Input
{
"screen": {
"width": 320,
"height": 240,
"bg_color": "#F0F0F0",
"objects": [
{
"type": "label",
"x": 20,
"y": 20,
"text": "Welcome to LVGL",
"color": "#000000",
"font_size": 16
},
{
"type": "button",
"x": 20,
"y": 60,
"width": 100,
"height": 40,
"text": "Click Me",
"bg_color": "#4CAF50",
"text_color": "#FFFFFF"
},
{
"type": "slider",
"x": 20,
"y": 120,
"width": 200,
"min": 0,
"max": 100,
"value": 50
},
{
"type": "switch",
"x": 20,
"y": 160,
"state": false
},
{
"type": "dropdown",
"x": 150,
"y": 60,
"width": 120,
"options": ["Option 1", "Option 2", "Option 3"],
"selected": 0
}
]
}
}