-
Notifications
You must be signed in to change notification settings - Fork 25
I will make one for the norwegian layout #33
Comments
do i need to make both cpp and .h file? |
Nop simply follow the guide in wiki: How to create a locale ?! |
Just .lang, just modify the sample.lang to fit with norwegian key layout ^^ |
Yeah ok, i have found out everything except the part of how i could know the "Coordinate" to the number/character/symbol. 0x1e|SHIFT, // !
0x1f|SHIFT, // " ,
0x31, // # This is how it is regularly. This symbol (") is to the right for (!) on my keyboard.
This is the error. This whole coordinate thing confuses me. |
Step 3 - Time to test |
I got this output now |
Hi, you made several mistakes in you posts, let me explain:
Step 3 is when you want to test, obviously, you use Dckuino.js, then you upload the code in the Arduino, you open a text editor, and you plug the Arduino to see what it will write ;D Last thing, what keys aren't working now ? Please list them out ^^ |
To convert characters to hex, for now i didn't found anything... @Andsoeg |
Only character not working is spacebar. |
Oh, so find the line for space ^^ And try :D @Andsoeg |
*To fix it ^^ |
I have, but it ios like 100 diffrent hex chars to test, and i doesnt seem to find it |
Are you sure that |
Yes, what technique do you use when you try to find characters? |
/* Copyright (c) 2015, Arduino LLC This library is free software; you can redistribute it and/or This library is distributed in the hope that it will be useful, You should have received a copy of the GNU Lesser General Public #include "Keyboard.h" #if defined(_USING_HID) //================================================================================ static const uint8_t _hidReportDescriptor[] PROGMEM = { // Keyboard 0x19, 0xe0, // USAGE_MINIMUM (Keyboard LeftControl) 0x95, 0x08, // REPORT_COUNT (8) 0x95, 0x06, // REPORT_COUNT (6) 0x19, 0x00, // USAGE_MINIMUM (Reserved (no event indicated)) Keyboard_::Keyboard_(void) void Keyboard_::begin(void) void Keyboard_::end(void) void Keyboard_::sendReport(KeyReport* keys) extern
#define SHIFT 0x80 0x2c, // ' ' // Init var // Individually define all needed char _altGrMap[36] = true; // $ uint8_t USBPutChar(uint8_t c); // press() adds the specified key (printing, non-printing, or modifier)
} // Add k to the key report only if it's not already present
} // release() takes the specified key out of the persistent key report and
} // Test the key report to see if k is present. Clear it if it exists. sendReport(&_keyReport); void Keyboard_::releaseAll(void) size_t Keyboard_::write(uint8_t c) Keyboard_ Keyboard; #endif |
I dont know any about this shit, and my brain went full overload during this time. But however it seems like it is the test string something is wrong with. because i can type regular words with a space between, this should be perfect? |
This is the Norwegian keyboard.cpp as i mentioned |
I will make one for the norwegian layout, but i need to know how, lol. Any special apps or software i need to help me out?
The text was updated successfully, but these errors were encountered: