As long as you have the other general components, voltage regulators, caps, etc. and some pin header connectors for the pickit connection you should be fine.
You could go for the 16F18326 / 16F18346 as larger pin count ones, for maximum compatibility with the 18313, but it should not really matter.
I set the CPU speed right down on the example to be sure it would work OK on an older, slower device..
It's set a 4MHz, but with the 16F18 series devices it will run at up to 32 MHz - so would stand a lot more LED output sections and still need a higher sub-step divider to give a reasonable output cycle speed.
The step table values for brightness through the cycle probably need tweaking as well, it's just quick guesswork.
You could go for the 16F18326 / 16F18346 as larger pin count ones, for maximum compatibility with the 18313, but it should not really matter.
I set the CPU speed right down on the example to be sure it would work OK on an older, slower device..
It's set a 4MHz, but with the 16F18 series devices it will run at up to 32 MHz - so would stand a lot more LED output sections and still need a higher sub-step divider to give a reasonable output cycle speed.
The step table values for brightness through the cycle probably need tweaking as well, it's just quick guesswork.