You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+77-74Lines changed: 77 additions & 74 deletions
Original file line number
Diff line number
Diff line change
@@ -4,110 +4,113 @@
4
4
This is just a little low level library for fetching keyboard input. <br>
5
5
This is a porting of the Numworks module, and add other methods created by others OS (like Omega or Upsilon).
6
6
7
+
7
8
### Installation
8
-
You can download it on [pypi.org](https://pypi.org/project/ion-numworks), download files of the [latest release](https://github.com/ZetaMap/Ion-numworks/releases/latest). <br>
9
-
Or simply run this command to install library: ``pip install ion-numworks``
9
+
You can download it on [pypi.org](https://pypi.org/project/ion-numworks), download files of the [latest release](https://github.com/ZetaMap/Ion-numworks/releases/latest), or simply run this command to install library: ``pip install ion-numworks``. <br>
10
+
To install from local folder, use: ``pip install .``
10
11
11
-
Also if you want to do it yourself, use this command to build and install the library automatically: ``python -m build && pip install .``
12
12
13
13
### More
14
-
Also i created the [Kandinsky module of Numworks](https://github.com/ZetaMap/Kandinsky-Numworks)
14
+
I also created the porting of the [Numworks' Kandinsky module](https://github.com/ZetaMap/Kandinsky-Numworks)
15
+
15
16
16
-
### Usable content
17
-
#### ***Numworks and Omega methods***
17
+
### API methods
18
+
*Numworks and Omega methods*
18
19
19
-
**keydown():**
20
+
#### keydown():
20
21
* Parameters: ``k``
21
22
* Description: Return True if the ``k`` key is pressed (not release)
22
23
23
-
#### ***Upsilon methods (previous are also added)***
24
+
<br>
24
25
25
-
**get_keys():**
26
+
*Upsilon-specific methods (previous are also added)*
27
+
28
+
#### get_keys():
26
29
* Parameters: **No parameters**
27
30
* Description: Get name of pressed keys
28
31
29
-
**battery():**
32
+
#### battery():
30
33
* Parameters: **No parameters**
31
34
* Description: Return battery voltage
32
35
33
-
**battery_level():**
36
+
#### battery_level():
34
37
* Parameters: **No parameters**
35
38
* Description: Return battery level
36
39
37
-
**battery_ischarging():**
40
+
#### battery_ischarging():
38
41
* Parameters: **No parameters**
39
42
* Description: Return True if the battery is charging
40
43
41
-
**set_brightness():**
44
+
#### set_brightness():
42
45
* Parameters: ``level``
43
46
* Description: Set brightness level of screen
44
47
45
-
**get_brightness():**
48
+
#### get_brightness():
46
49
* Parameters: **No parameters**
47
50
* Description: Get brightness level of screen
48
51
49
-
#### ***Associated keyboard keys***
50
-
51
-
| Numworks key | Computer key | Field name | Field value
0 commit comments