[Solved] ATMega328P-AU running at 1 MHz instead of 16 Mhz

Changing the values in the boards.txt file alone doesn't doe anything. The fuse settings are also NOT changed when uploading code.

The IDE only changes these if you use it to upload a bootloader. If you don't need that, change the fuse settings by hand.