GithubHelp home page GithubHelp logo

lovyan03 / m5stack_onscreenkeyboard Goto Github PK

View Code? Open in Web Editor NEW
42.0 5.0 10.0 73 KB

M5Stack OnScreenKeyboard オンスクリーン キーボード

License: MIT License

Makefile 0.72% C++ 99.28%
m5stack onscreen-keyboard

m5stack_onscreenkeyboard's Introduction

M5Stack OnScreenKeyboard library. (for ASCII code)

Add Keyboard for your M5Stack project.

あなたのM5Stackプロジェクトにキーボードを!

Description

OnScreenKeyboard which can be operated with 3 button.

M5Stack本体の3ボタンで操作できるオンスクリーンキーボード。
簡単な文字入力にお使いいただけます。

Support FACES Keyboard and GameBoy and Encoder unit.
Support PLUS Encoder unit.
Support JoyStick unit.
Support CardKB unit.
Support morse code input.

M5Stackの各種ユニットでの操作にも対応。 A+C 2ボタン同時押しでモールス入力モードに切替可能。

image

Common operation:
BtnA click : キーボードパネル切替 Keyboard panel switches.
BtnA and B hold and BtnC click : 全消去 Clear all strings.
BtnA hold and BtnC click : モールス入力/フォーカス入力 モード切替 Switch between Morse code mode and focus selection mode.

in focus mode:
BtnA hold : 左(上)に移動 The focus moves to the left (or up).
BtnB click(or hold) : 選択決定、行/列選択切替 The focused target is entered. Then switch the row/column selection.
BtnC click(or hold) : 右(下)に移動 The focus moves to the right (or down).
BtnA hold and BtnB click : 入力完了(または列選択に戻る) Finish keyboard input. (or back to column selection.)

image
in morse code mode:
BtnB click : モールス短音入力 Input a short pulse.
BtnC click : モールス長音入力 Input a long pulse.
Release BtnB and C for 700 msec : 入力確定 Fix input.
BtnA hold and BtnB click : 入力完了 Finish keyboard input.

Morse code is GBoard morse compliant.
GBoard morse code list

Usage

#include <M5OnScreenKeyboard.h>

M5OnScreenKeyboard m5osk;

  m5osk.useFACES = true;       // FACES unit support.
  m5osk.useCardKB = true;      // CARDKB unit support.
  m5osk.useJoyStick = true;    // JoyStick unit support.
  m5osk.usePLUSEncoder = true; // PLUS Encoder unit support.
  m5osk.useFACESEncoder = true;// FACES Encoder unit support.
  // m5osk.swapBtnBC = true;   // BtnB/BtnC KeyAssign swap.

  m5osk.setup();
//m5osk.setup("Hello World."); // You can also set default text

  while (m5osk.loop()) {
    // You can write your code here.
    delay(1);
  }
  String text = m5osk.getString();
  m5osk.close();

Licence

MIT

Author

lovyan03

m5stack_onscreenkeyboard's People

Contributors

lovyan03 avatar per1234 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

m5stack_onscreenkeyboard's Issues

Feature Request: Keyboard to input only numbers

hi @lovyan03
This keyboard is a great feature. Thank you for the libraries.

Feature Request:
Please add a keyboard with only numbers to input.
This is very useful when you are pairing with BLE devices for security and also to input OTP (One Time Password).

about M5OnScreenKeyboard

Hello,

I want to know if it is possible to make it AZERTY and extended latin for french character?

Thanks.

M5Stack Core 2

Hi,
are you planning to support the touchscreen on the Core 2?

bert

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.