/* Notsch Chris, 02.08.2023
 * Implementation Example (main.c):
 * Required Apps: UART (1x)
 *
 * - UART: General Settings -> change Baud Rate to 9600 (recommended)
 * - UART: Assign Pins
 *
 * Note: You may need to refresh DAVE's autocomplete index after adding the required apps and generating the code so the required UGUI-methods are activated:
 *       --> Rightclick on the project --> Index --> Rebuild
*/

#include <DAVE.h>
#include "UGUI_Lib/UGUI_LIB.h"

UGUI_Handle_t UGUI_0;
float dummy1 = 0.0f;

int main(void)
{
    DAVE_Init();
    UGUI_Init_UART(&UGUI_0, &UART_0);

    uint16_t cmd=1;
    UGUI_RegisterProperty_RW_Float(&UGUI_0, cmd++, UGUI_DEFAULT_QUERY_OFFSET, &dummy1, 0.0f, 1.0f, "dummy");

    while (1U)
    {
        UGUI_Maintain(&UGUI_0);
    }
}
