Im almost at the end of my bachelor and until now I have good C and Python knowledge but Im not a Pro.

I bought the Crazyflie 2.0 Kit to write my own code and get more experience. But it is more difficult than expected.
Thats why I have some questions.
1.) Where can I write my code?
When I open eclipse and go to the "Project Explorer" -> Crazyflie2 - nrf - firmware -> src -> main.c
Do I have to write my code at the end of the method called "mainloop()" ???
In Project Explorer" -> Crazyflie2-firmware -> init -> main.c there is no mainloop with code... ?
2.) To understand how it works and get a general idea I would like to start with a veeeery simple code.
First I would like to blink a LED and then I would like to turn on a single motor.
For this I need a Interrupt.
How can I use it?
Thx and sorry for the stupid questions...