Skip to content

Gallery of Examples

Calvin Hass edited this page Feb 3, 2019 · 15 revisions

Overview >

The following section details the various examples that are included with the GUIslice release:

TO BE UPDATED - Adding screenshots

test_sdl1

snap_sdl1_c

  • Features demonstrated:
    • Basic SDL1 drawing functionality w/o GUIslice
  • Availability: LINUX SDL (Raspberry Pi)

ex01_basic

snap01_c

  • Features demonstrated:
    • Simplest element: box
  • No touchscreen required
  • Expected behavior: Automatically exits after 2 seconds

ex02_btn_txt

snap02_c

  • Features demonstrated:
    • Accept touch input
    • Text button
  • Expected behavior: Clicking on button terminates program

ex03_btn_img

snap03_c

  • Features demonstrated:
    • Graphic button
  • Requirements: image files must be present on SD card (Arduino) or directory (LINUX)
  • Expected behavior: Clicking on button terminates program

ex04_ctrls

snap04_c

  • Features demonstrated:
    • Push buttons
    • Checkboxes
    • Slider controls
    • Additional Adafruit-GFX fonts (see USE_EXTRA_FONTS)

ex05_pages

snap05_c snap05a_c

  • Features demonstrated:
    • Multiple page handling
    • Checkboxes
    • Background image
  • Note: The background image display is disabled by default in the Arduino examples. It can be enabled by uncommenting a couple lines of code and ensuring that the SD card contains the associated images.

ex06_callback

snap06_c

  • Features demonstrated:
    • Example of clipping
    • Custom Draw and Tick callback functions

ex07_slider

snap07_c

  • Features demonstrated:
    • Sliders with dynamic color control and position callback
  • Expected behavior: Clicking on "SAVE" button terminates program, and no action when clicking on "Selected Room" button

ex08_tuner

  • Radio station tuner mockup
  • Demonstrates alternate GUI styling

ex09_radial

  • Features demonstrated:
    • Radial and Ramp controls

ex10_textbox

  • Features demonstrated:
    • Demonstrate textbox controls

ex11_graph

  • Features demonstrated:
    • Demonstrate graph control with scrolling window

ex15_foreign

  • Features demonstrated:
    • Demonstrate foreign characters (UTF-8)

ex16_touch_hnd

  • Features demonstrated:
    • Show the usage of the touch handler class, this class allows easy user adaption of new touch screens
    • Accept touch input, text button

ex17_rotate

  • Features demonstrated:
    • Show the usage of dynamic rotation
    • Accept touch input, text button
  • Expected behavior: Clicking on button rotates the screen

ex18_compound

  • Features demonstrated:
    • Multiple page handling
    • Background image
    • Compound elements
  • Requirements: image files must be present on SD card (Arduino) or directory (LINUX)

ex19_smooth

  • Availability: ESP8266, ESP32
  • Features demonstrated:
    • Antialiased fonts
  • Requirements: font files have to be loaded into SPIFFS

ex21_input_pin

  • Features demonstrated:
    • GPIO / pin control (Arduino)

ex22_input_key

  • Features demonstrated:
    • Keyboard (LINUX SDL)

ex23_m5_input_btn

  • Availability: M5stack
  • Features demonstrated:
    • Integrated button control

ex24_tabs

image

  • Features demonstrated:
    • Multiple page / layers / tab controls
  • Note that this feature is in proof-of-concept phase

ex25_???

  • This example available for future pull requests
Clone this wiki locally