Rafucho25 / numeric-keyboard-amazfit-devices

Numeric keyboard for amazfit band 7, gts 4, gts 4 mini and gts 3 with zepp os v1

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Numeric keyboard for amazfit devices

A simple numeric keyboard for amazfit band 7, GTS 4, GTS 4 mini and GTS 3.

How to install

  • Download the utils folder at the same level as the page folder.

How it works

  • The constructor accept one parameter: the coordinate "y" of the keyboard this is for example if you want to display something before the keyboard you can.
  • You can use the file example.js(put in the page folder) to see the keyboard in action

How to use(example for band 7)

  • Add this line to the page you want to display the keyboard:
import { keyboard_band7 } from '../utils/keyboard' //add or remove ../ depends of your page folder location 
  • Create an instance:
const keyboard = new keyboard_band7()
  • Get text:
keyboard.text_value
  • For GTS 4 and gts 3:
import { keyboard_gts3_4 } from '../utils/keyboard' 
  • For GTS 4 mini:
import { keyboard_gts4_mini } from '../utils/keyboard' 

Screenshot

Default

Parameter "y" = 100

Notes

This is my first project using javascript so maybe there are ways to improve the quality of the code.

Let me know if you have any ideas or recommendations to improve.

About

Numeric keyboard for amazfit band 7, gts 4, gts 4 mini and gts 3 with zepp os v1


Languages

Language:JavaScript 100.0%