Skip to content

Commit 6e1017b

Browse files
committed
Some adjusts after comments
1 parent 939d576 commit 6e1017b

File tree

2 files changed

+14
-24
lines changed

2 files changed

+14
-24
lines changed

src/KeyboardLayout_pt_BR.cpp

Lines changed: 13 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ extern const uint8_t KeyboardLayout_pt_BR[128] PROGMEM =
1414
0x00, // ENQ
1515
0x00, // ACK
1616
0x00, // BEL
17-
1817
0x2a, // BS Backspace
1918
0x2b, // TAB Tab
2019
0x28, // LF Enter
@@ -34,7 +33,7 @@ extern const uint8_t KeyboardLayout_pt_BR[128] PROGMEM =
3433
0x00, // CAN
3534
0x00, // EM
3635
0x00, // SUB
37-
0x29, // ESC
36+
0x00, // ESC
3837
0x00, // FS
3938
0x00, // GS
4039
0x00, // RS
@@ -55,8 +54,7 @@ extern const uint8_t KeyboardLayout_pt_BR[128] PROGMEM =
5554
0x36, // ,
5655
0x2D, // -
5756
0x37, // .
58-
0x54, // /
59-
57+
0x14|ALT_GR, // /
6058
0x27, // 0
6159
0x1e, // 1
6260
0x1f, // 2
@@ -68,13 +66,12 @@ extern const uint8_t KeyboardLayout_pt_BR[128] PROGMEM =
6866
0x25, // 8
6967
0x26, // 9
7068
0x38|SHIFT, // :
71-
0x38, // ;
72-
0x36|SHIFT, // <
69+
0x38, // ;
70+
0x36|SHIFT, // <
7371
0x2e, // =
7472
0x37|SHIFT, // >
75-
0x54|SHIFT, // ? ???
73+
0x1a|ALT_GR, // ?
7674
0x1f|SHIFT, // @
77-
7875
0x04|SHIFT, // A
7976
0x05|SHIFT, // B
8077
0x06|SHIFT, // C
@@ -101,14 +98,12 @@ extern const uint8_t KeyboardLayout_pt_BR[128] PROGMEM =
10198
0x1b|SHIFT, // X
10299
0x1c|SHIFT, // Y
103100
0x1d|SHIFT, // Z
104-
105101
0x30, // [
106-
0x64, // bslash
107-
0x31, // ]
108-
0x34|SHIFT, // ^ not supported (requires dead key + space)
102+
0x32, // bslash
103+
0x31, // ]
104+
0x00, // ^ not supported (requires dead key + space)
109105
0x2d|SHIFT, // _
110-
0x2f|SHIFT, // ` not supported (requires dead key + space)
111-
106+
0x00, // ` not supported (requires dead key + space)
112107
0x04, // a
113108
0x05, // b
114109
0x06, // c
@@ -135,10 +130,9 @@ extern const uint8_t KeyboardLayout_pt_BR[128] PROGMEM =
135130
0x1b, // x
136131
0x1c, // y
137132
0x1d, // z
138-
139-
0x30|SHIFT, // {
140-
0x64|SHIFT, // |
141-
0x31|SHIFT, // }
142-
0x34, // ~ not supported (requires dead key + space)
133+
0x30|SHIFT, // {
134+
0x32|SHIFT, // |
135+
0x31|SHIFT, // }
136+
0x00, // ~ not supported (requires dead key + space)
143137
0x00 // DEL
144138
};

src/Keyboard_pt_BR.h

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
/*
2-
Keyboard_pt_PT.h
3-
4-
Copyright (c) 2022, Edgar Bonet
2+
Keyboard_pt_BR.h
53
64
This library is free software; you can redistribute it and/or
75
modify it under the terms of the GNU Lesser General Public
@@ -34,8 +32,6 @@
3432
// Keyboard
3533

3634
// pt_BR keys
37-
#define KEY_MASCULINE_ORDINAL (136+0x31)
38-
#define KEY_SIX (136+0x23)
3935
#define KEY_ACUTE (136+0x2f)
4036
#define KEY_C_CEDILLA (136+0x33)
4137
#define KEY_TILDE (136+0x34)

0 commit comments

Comments
 (0)