Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't compile with µC from Mighty Core (i.e. ATmega644) and MiniCore (i.e. ATmega328) #41

Open
Greece2 opened this issue May 11, 2024 · 0 comments

Comments

@Greece2
Copy link

Greece2 commented May 11, 2024

When trying to compile the examples (i.e. "international.ino" to get started) using µCs from Mighty Core (i.e. ATmega644) and MiniCore(i.e. ATmega328), I get the following error:

W:\libraries\PS2Keyboard\PS2Keyboard.cpp:271:1: error: narrowing conversion of '-15708' from 'int' to 'uint8_t {aka unsigned char}' inside { } [-Wnarrowing]
};

and the warnings:

W:\libraries\PS2Keyboard\PS2Keyboard.cpp:265:53: warning: multi-character character constant [-Wmultichar]
0 /CapsLock/, 0 /Rshift/, PS2_ENTER /Enter/, '¤', 0, '#', 0, 0,
^~~~
W:\libraries\PS2Keyboard\PS2Keyboard.cpp:153:1: warning: missing initializer for member 'PS2Keymap_t::altgr' [-Wmissing-field-initializers]
};

Using the ProMini (also an ATmega328), Nano etc., everything compiles absolutely fine, no warnings, no errors.

As I do need the 644 and other µC from the Mighty- and MiniCore Libs, any idea how to overcome this problem ?

Thanks in advance !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant