Attiny85 keyboard change

Hello,

Everything is working perfect but i have azerty keyboard on my laptop, when i plug it in it just types qwerty letters.
How can i change something that my sketch works on azerty?

Thanks,
Kxno

i read this before and i am still puzzled by what you are actually asking, how does the topic title relate to your issue ? what is wrong with your laptop ? what sketch ?

I mean if i plug in my board it types in qwerty.
And my question is how can i change something on my sketch or board that it types as azerty instead of qwerty?

What board? What sketch? What are you plugging it into? Do you think we can see you and what you have through the computer screen or something? Don’t be silly, you have to tell us those details or we just know that you have some mystery code on some mystery device that has a problem and there’s nothing anyone can do to help you with just that.

Sorry for my bad english.

I have a attiny85 and put ducky script on it and it works fine.
But everytime before i plug it in i need to set my keyboard to qwerty.
And if you dont do that then it types in qwerty.
I want to change it to belgian azerty that i dont have to change my keyboard always.

so where is the code that you put on the ATtiny ? i have never heard if

ducky script

what kind of keyboard are you plugging into what and how ? and how do you change your keyboard (settings) ?

You will have to modify the Digikeyboard.h file to assign the names to the proper USB keycodes. Right now the names are based on the US-English keyboard. For example on a QWERTY keyboard Q is on key 20 and W is on key 26. On an AZERTY keyboard, A would be 20 and Z would be 26.

This is the layout of the key codes on the keyboard:

? 30 31 32 33 34 35 36 37 38 39 ? ? ?
? 20 26 8 21 23 28 24 12 18 18 ? ?
4 22 7 9 10 11 13 14 15 ? ? ?
29 27 6 25 5 17 16 ? ? ? ?

You will need the change the values assigned to each name in Digikeyboard.h to match your keyboard layout.

Here are the current US-English keyboard mappings:

#define KEY_A       4
#define KEY_B       5
#define KEY_C       6
#define KEY_D       7
#define KEY_E       8
#define KEY_F       9
#define KEY_G       10
#define KEY_H       11 
#define KEY_I       12
#define KEY_J       13
#define KEY_K       14
#define KEY_L       15
#define KEY_M       16
#define KEY_N       17
#define KEY_O       18
#define KEY_P       19
#define KEY_Q       20
#define KEY_R       21
#define KEY_S       22
#define KEY_T       23
#define KEY_U       24
#define KEY_V       25
#define KEY_W       26
#define KEY_X       27
#define KEY_Y       28
#define KEY_Z       29
#define KEY_1       30
#define KEY_2       31
#define KEY_3       32
#define KEY_4       33
#define KEY_5       34
#define KEY_6       35
#define KEY_7       36
#define KEY_8       37
#define KEY_9       38
#define KEY_0       39

#define KEY_ENTER   40

#define KEY_SPACE   44

#define KEY_F1      58
#define KEY_F2      59
#define KEY_F3      60
#define KEY_F4      61
#define KEY_F5      62
#define KEY_F6      63
#define KEY_F7      64
#define KEY_F8      65
#define KEY_F9      66
#define KEY_F10     67
#define KEY_F11     68
#define KEY_F12     69

#define KEY_ARROW_LEFT 0x50

i changed everything as you said in:

C:\Users\pc\AppData\Local\Arduino15\packages\digistump\hardware\avr\1.6.7\libraries\DigisparkKeyboard/DigiKeyboard.h

and this my keyboard mappings:

#define KEY_A 20
#define KEY_B 5
#define KEY_C 6
#define KEY_D 7
#define KEY_E 8
#define KEY_F 9
#define KEY_G 10
#define KEY_H 11
#define KEY_I 12
#define KEY_J 13
#define KEY_K 14
#define KEY_L 15
#define KEY_M 51
#define KEY_N 17
#define KEY_O 18
#define KEY_P 19
#define KEY_Q 4
#define KEY_R 21
#define KEY_S 22
#define KEY_T 23
#define KEY_U 24
#define KEY_V 25
#define KEY_W 29
#define KEY_X 27
#define KEY_Y 28
#define KEY_Z 26
#define KEY_1 30
#define KEY_2 31
#define KEY_3 32
#define KEY_4 33
#define KEY_5 34
#define KEY_6 35
#define KEY_7 36
#define KEY_8 37
#define KEY_9 38
#define KEY_0 39

#define KEY_ENTER 40

#define KEY_SPACE 44

#define KEY_F1 58
#define KEY_F2 59
#define KEY_F3 60
#define KEY_F4 61
#define KEY_F5 62
#define KEY_F6 63
#define KEY_F7 64
#define KEY_F8 65
#define KEY_F9 66
#define KEY_F10 67
#define KEY_F11 68
#define KEY_F12 69

#define KEY_ARROW_LEFT 0x50

But it still writes in qwerty

KxNo:
i changed everything as you said in:

C:\Users\pc\AppData\Local\Arduino15\packages\digistump\hardware\avr\1.6.7\libraries\DigisparkKeyboard/DigiKeyboard.h

But it still writes in qwerty

Then you will have to be a lot more specific about the exact code you are using.
What sketch are you running?
Where did you get the libraries it uses?
What ATtiny85 core are you using and where did you get it?