Files
iroBotAMOLED_Test/main/animated_eyes_demo.h

44 lines
930 B
C

/**
* @file animated_eyes_demo.h
* @brief Demo functions for animated eyes
*/
#ifndef ANIMATED_EYES_DEMO_H
#define ANIMATED_EYES_DEMO_H
#include "animated_eyes.h"
#ifdef __cplusplus
extern "C" {
#endif
/**
* @brief Start the animated eyes demo
*
* Creates animated eyes on the current screen and starts
* the animation. Call animated_eyes_demo_stop() to clean up.
*
* @return Handle to the animated eyes, or NULL on failure
*/
animated_eyes_handle_t animated_eyes_demo_start(void);
/**
* @brief Get the current animated eyes handle
*
* @return animated_eyes_handle_t Handle or NULL if not started
*/
animated_eyes_handle_t animated_eyes_demo_get_handle(void);
/**
* @brief Stop the animated eyes demo and clean up
*
* @param handle Handle returned by animated_eyes_demo_start()
*/
void animated_eyes_demo_stop(animated_eyes_handle_t handle);
#ifdef __cplusplus
}
#endif
#endif /* ANIMATED_EYES_DEMO_H */