/* This file is part of the Simba project.  */
int main()
/* This file is part of the Simba project.  */
int main()
{
    int value;
    struct analog_input_pin_t pin;
    sys_start();
    analog_input_pin_module_init();
    if (analog_input_pin_init(&pin, &pin_a0_dev) != 0) {
        std_printf(FSTR("Failed to initialize the analog input pin.\r\n"));
        return (-1);
    }
    while (1) {
        value = analog_input_pin_read(&pin);
        std_printf(FSTR("value = %d\r\n"), value);
        thrd_sleep_ms(100);
    }
    return (0);
}