Description
This widget is for button widget, and user can press or release to trigger function.
Attributes
- Name
Button widget name
- Position X
Display Push Button widget at position X on screen
- Position Y
Display Push Button widget at position Y on screen
- Width
Push Button widget width
- Height
Push Button widget height
- Button release image
Push Button widget release image display source
- Button press image
Push Button widget press image display source
- Template
Push Button widget display template image
- Text
Push Button widget display text
- Font
Push Button widget display text style
- Font size
Push Button widget display text size
- Red
Push Button widget display text red color
- Green
Push Button widget display text green color
- Blue
Push Button widget display text blue color
- Alpha
Push Button widget display text Alpha value
Function
| Function | Description |
|---|---|
| layout_change_to_layout | Change the displayed Layout widget |
| button_set_text | Change the displayed PushButton widget text |
| button_set_text_color | Change the displayed PushButton widget color |
| image_set_image | Change the displayed source from Image widget |
| animation_set_frame_idx | Change the displayed Animation widget which frame idx |
| animation_set_animation | Change the displayed source from Animation widget |
| text_set_text | Change the displayed Text widget text |
| text_set_text_color | Change the displayed Text widget color |
| meter_needle_set_value | Change the displayed Meter Needle widget value |
| progress_bar_set_value | Change the displayed Progress Bar widget value |
| slider_set_value | Change the displayed Slider widget value |
| set_backlight | Change backlight on device |
| buzzle_set_frequency | Change the buzzle frequency, the sound effect will play one time when widget trigger |
| PWM_set_frequency | Change frequency value to pin |
| PWM_set_percentage | Change percentage value to pin |
| UART_transfer_message | Transfer message from UART |
| USB_transfer_message | Transfer message from USB |
Description
This widget is for toggle button widget, toggle button have true and false state, user can use true or false state to trigger function
Attributes
- Name
Toggle button widget name
- Position X
Display toggle button widget at position X on screen
- Position Y
Display toggle button widget at position Y on screen
- Width
Toggle button widget width
- Height
Toggle button widget height
- Toggle on image
Toggle button widget image on display source
- Toogle off image
Toggle button widget image off display source
- Template
Toggle button widget display template image
Function
| Function | Description |
|---|---|
| button_set_text | Change the displayed PushButton widget text |
| button_set_text_color | Change the displayed PushButton widget color |
| image_set_image | Change the displayed source from Image widget |
| animation_set_frame_idx | Change the displayed Animation widget which frame idx |
| animation_set_animation | Change the displayed source from Animation widget |
| text_set_text | Change the displayed Text widget text |
| text_set_text_color | Change the displayed Text widget color |
| meter_needle_set_value | Change the displayed Meter Needle widget value |
| progress_bar_set_value | Change the displayed Progress Bar widget value |
| slider_set_value | Change the displayed Slider widget value |
| set_backlight | Change backlight on device |
| buzzle_set_frequency | Change the buzzle frequency, the sound effect will play one time when widget trigger |
| PWM_set_frequency | Change frequency value to pin |
| PWM_set_percentage | Change percentage value to pin |
| UART_transfer_message | Transfer message from UART |
| USB_transfer_message | Transfer message from USB |