Next, can you explain how:
ioport_init();
ioport_set_pin_dir(MY_LED, IOPORT_DIR_OUTPUT);
:
ioport_set_pin_level(MY_LED, true);
is less "under the hood" than pinMode/digitalWrite?
If you want to learn Atmel CM3, you should probably ignore most of ASF...