Pixel Art action (only 2 colors)

Iam looking for a Pixel Art Revelation (generator) Action for photoshop where I can go from 8 colors or even more down to only 2 colors! (picture)

if i only want to have black and white or red and yellow color.

is this possible?

something like this, but will only make in 2 colors after my own choice.

Like thisimage

Not like this with a lot of the same color!