Interface of the demo main functions.
Copyright (c) 2014-2018 Microchip Technology Inc. and its subsidiaries.
Functions | |
void | demo_automatic_ledshow_play (int repeat) |
Prologue of the demo. More... | |
void | demo_init_pwma (void) |
Initialize the PWMA module for the demo. More... | |
void | process_qtouchlib_data (void) |
Process the latest qtouchlib data. More... | |
void demo_automatic_ledshow_play | ( | int | repeat | ) |
Prologue of the demo.
All 4 LEDs blink n(=repeat) times simultaneously with PWM fading effect.
References current_led, delay_ms, duty_cycles_per_led, LED_COUNT, LED_PWMA_CHANNELS_MASK, max, min, PWMA_DUTY_CYCLE_INCREASE, PWMA_DUTY_CYCLES_STEP, PWMA_MAX_DUTY_CYCLES, PWMA_MIN_DUTY_CYCLES, and pwma_set_channels_value().
Referenced by main().
void demo_init_pwma | ( | void | ) |
Initialize the PWMA module for the demo.
References gpio_enable_module_pin(), LED0_GPIO, LED0_PWM_FUNCTION, LED1_GPIO, LED1_PWM_FUNCTION, LED2_GPIO, LED2_PWM_FUNCTION, LED3_GPIO, LED3_PWM_FUNCTION, LED_PWMA_CHANNELS_MASK, pwma_config_enable(), PWMA_DUTY_CYCLE_INIT_VAL, PWMA_GCLK_FREQUENCY, PWMA_OUTPUT_FREQUENCY, pwma_set_channels_value(), scif_gc_enable(), scif_gc_setup(), SCIF_GCCTRL_RC120M, and scif_start_rc120M().
Referenced by main().
void process_qtouchlib_data | ( | void | ) |
Process the latest qtouchlib data.
References tag_touch_measure_data_t::acq_status, BTN_SENSOR_DOWN_MASK, BTN_SENSOR_LEFT_MASK, BTN_SENSOR_PLAYPAUSE_MASK, BTN_SENSOR_RIGHT_MASK, BTN_SENSOR_UP_MASK, btns_state_machine, BTNS_STATE_MACHINE_IDLE, demo_state, DEMO_STATE_BTNS_PROCESS, DEMO_STATE_IDLE, DEMO_STATE_WHEEL_PROCESS, tag_touch_measure_data_t::p_sensor_states, process_buttons(), process_wheel(), reset_leds(), TOUCH_ROTOR_SLIDER_POS_CHANGE, TOUCH_STATUS_CHANGE, and WHEEL_SENSORS_MASK.
Referenced by main().