M5Unit-KEYBOARD 0.0.1 git rev:a483db1
Loading...
Searching...
No Matches
unit_CardKB2_defs.cpp File Reference

Shared key maps and lookup functions for CardKB2. More...

#include "unit_CardKB2_defs.hpp"
#include <M5Utility.hpp>

Namespaces

namespace  m5
 Top level namespace of M5stack.
 

Functions

key_index_t m5::unit::cardkb2::character_to_key_index (const char ch)
 Character to key index.
 
uint8_t m5::unit::cardkb2::character_to_mode_bits (const char ch)
 Character to mode bits.
 

Detailed Description

Shared key maps and lookup functions for CardKB2.

Function Documentation

◆ character_to_key_index()

keyboard::key_index_t m5::unit::cardkb2::character_to_key_index ( const char ch)

Character to key index.

Return values
!=0xFF keyboard::key_index_t
==0xFF No corresponding key index exists

◆ character_to_mode_bits()

uint8_t m5::unit::cardkb2::character_to_mode_bits ( const char ch)

Character to mode bits.

Return values
==0 Not exists
!=0 Bits in corresponding mode
Note
0x01:normal 0x02:shift 0x04:symbol 0x08:function