esp32 firmware for a toaster reflow oven WIP!!!!!
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
reflower/main/scenes/scene_string.h

35 lines
675 B

/**
* TODO file description
*
* Created on 2020/01/05.
*/
#ifndef REFLOWER_SCENE_STR_H
#define REFLOWER_SCENE_STR_H
#include <stdint.h>
#define STR_EDIT_VALUE_MAXLEN 17
/**
* Options passed to the StringScene constructor
*/
struct StringSceneOpts {
// Screen title
char label[15];
// Value
char value[STR_EDIT_VALUE_MAXLEN];
};
/**
* Create string picker.
*
* "opts" must be on heap and will be internally mutated.
* The scene frees them on exit, returning the selected value as data (heap string), or NULL on cancel.
*
* @param opts
* @return
*/
struct Scene *NewScene_String(struct StringSceneOpts *opts);
#endif //REFLOWER_SCENE_STR_H