SSD1306 OLED display driver  1.5.0
This library is developed to control SSD1306/SSD1331 RGB i2c/spi OLED displays and spi PCD8544 LED display
Static Public Member Functions | Protected Member Functions | Static Protected Attributes | List of all members
NanoEngineInputs Class Reference

#include <core.h>

Inheritance diagram for NanoEngineInputs:
NanoEngineCore NanoEngine< C, W, H, B > NanoEngine< TILE_8x8_MONO > NanoEngine< TILE_8x8_RGB16 > NanoEngine< TILE_8x8_RGB8 > NanoEngine1 NanoEngine16 NanoEngine8

Static Public Member Functions

static bool pressed (uint8_t buttons)
 Returns true if button or specific combination of buttons is not pressed. Returns true if button or specific combination of buttons is pressed. More...
 
static bool notPressed (uint8_t buttons)
 Returns true if button or specific combination of buttons is not pressed. Returns true if button or specific combination of buttons is not pressed. More...
 
static uint8_t buttonsState ()
 Returns bits of all pressed buttons Returns bits of all pressed buttons.
 
static void connectCustomKeys (TNanoEngineGetButtons handler)
 
static void connectZKeypad (uint8_t analogPin)
 Enables engine to use Z-Keypad. Enables engine to use Z-Keypad. Please refer to arkanoid example for schematics. More...
 
static void connectArduboyKeys ()
 Configures NanoEngine8 to use Arduboy keys layout. Configures NanoEngine8 to use Arduboy keys layout.
 

Protected Member Functions

 NanoEngineInputs ()
 

Static Protected Attributes

static TNanoEngineGetButtons m_onButtons = nullptr
 

Detailed Description

Class for keys processing functionality

Definition at line 59 of file core.h.

Constructor & Destructor Documentation

◆ NanoEngineInputs()

NanoEngineInputs::NanoEngineInputs ( )
inlineprotected

Initializes Nano Engine Inputs object.

Definition at line 65 of file core.h.

Member Function Documentation

◆ connectCustomKeys()

void NanoEngineInputs::connectCustomKeys ( TNanoEngineGetButtons  handler)
static

Configures NanoEngine8 to use custom key handler. You can implement in your handler any keyboard layout, you use in your schematics.

Definition at line 44 of file core.cpp.

◆ connectZKeypad()

void NanoEngineInputs::connectZKeypad ( uint8_t  analogPin)
static

Enables engine to use Z-Keypad. Enables engine to use Z-Keypad. Please refer to arkanoid example for schematics.

Parameters
analogPin- pin, which Z-Keypad is connected to.

Definition at line 68 of file core.cpp.

◆ notPressed()

bool NanoEngineInputs::notPressed ( uint8_t  buttons)
static

Returns true if button or specific combination of buttons is not pressed. Returns true if button or specific combination of buttons is not pressed.

Parameters
buttons- buttons to check
Returns
true of false

Definition at line 39 of file core.cpp.

◆ pressed()

bool NanoEngineInputs::pressed ( uint8_t  buttons)
static

Returns true if button or specific combination of buttons is not pressed. Returns true if button or specific combination of buttons is pressed.

Parameters
buttons- buttons to check
Returns
true or false

Definition at line 34 of file core.cpp.

Member Data Documentation

◆ m_onButtons

TNanoEngineGetButtons NanoEngineInputs::m_onButtons = nullptr
staticprotected

Callback to call if buttons state needs to be updated

Definition at line 113 of file core.h.


The documentation for this class was generated from the following files: