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_number.h

39 lines
724 B

/**
* TODO file description
*
* Created on 2020/01/05.
*/
#ifndef REFLOWER_SCENE_NUMBER_H
#define REFLOWER_SCENE_NUMBER_H
#include <stdint.h>
/**
* Options passed to the NumberScene constructor
*/
struct NumberSceneOpts {
// Screen title
char label[15];
// Unit added to the value
char unit[8];
// Initial value
int32_t value;
// min value
int32_t min;
// max value
int32_t max;
};
/**
* Create number picker.
*
* "opts" must be on heap and will be internally mutated.
* The scene frees them on exit, returning the selected value as status.
*
* @param opts
* @return
*/
struct Scene *NewScene_Number(struct NumberSceneOpts *opts);
#endif //REFLOWER_SCENE_NUMBER_H