You don't want to do scrypt as it has a whole load of memory to take care of - 128KiB.
Every time you see a rotate instruction in hashing that's equivalent to shuffling the wires.
Every time you see a "shuffle registers" section, that's equivalent to shuffling bundles of wires.
Because microcontrollers don't run generic operative systems compiling a generic miner will be problematic. Perhaps adapting them would be enough complicated to be a project in itself.
If you think you can make any money from it, you're better stop right now.
If you want to do scrypt do it. I cannot see how you're going to fit the 128KiB of scratchpad (I see from microcontroller data sheet you have 2KiB at most).
Do you want to do SHA256? That's easier.
If you think SHA256 is easier, then I should indeed do SHA256. Do you think I should order the ATMega328P over the one with the Microprocessor. I am still undecided. Certainly glad I made this thread. I did not purchase the board yet. I can get 2 of the ATMega328P for every one with the Microcontroller.
I made this thread to get some help and suggestions for the community.
Thank you
You could do a comparison with Arduino TRE with Atmel ATmega32u4..................