How do you approach a project if there's no library of a device available?

cyberjupiter:
only written for Arduinos and most of it are at least is a combination of C and C++, so running that library on a chip that only supports C is useless.

Microprocessors know nothing about whether the program was written in C or C++ or any other language. The compiler converts the code you write into code suitable for the selected microprocessor.

If you can get a C/C++ compiler that can produce code for the Atmel or Microchip processor that you want to use it is quite likely that the library code will work, or will work with a few changes.

If that does not work then what @jremington said is the way to go.

...R