Lamp-Da 0.1
A compact lantern project
Loading...
Searching...
No Matches
Classes | Namespaces | Functions | Variables
inputs.h File Reference

Handle the logic associated with the input button. More...

Go to the source code of this file.

Classes

struct  lampda::logic::inputs::__private::ButtonEvent
 

Namespaces

namespace  lampda
 Program scope.
 
namespace  lampda::logic
 Handle the main high level logics.
 
namespace  lampda::logic::inputs
 Handle the system input, the behavior associated to the button inputs.
 
namespace  lampda::logic::inputs::__private
 private handling namespace, used for unit testing
 

Functions

void lampda::logic::inputs::init (const bool wasPoweredByUserInterrupt)
 Call once on system start.
 
void lampda::logic::inputs::loop ()
 Call often to handle button updates.
 
void lampda::logic::inputs::button_disable_usermode ()
 disable custom user modes
 
bool lampda::logic::inputs::is_button_usermode_enabled ()
 return true if custom user modes are enabled
 
bool lampda::logic::inputs::add_button_click_event (uint32_t clickCount)
 Signal a button click event.
 
bool lampda::logic::inputs::add_button_press_event (uint32_t clickCount, uint32_t pressDuration, bool isEndOfPress)
 Signal a button press event.
 

Variables

static constexpr size_t lampda::logic::inputs::__private::maxButtonEventStore
 this event count should be high enough to not miss clicks and ramp events
 

Detailed Description

Handle the logic associated with the input button.