You can get 8bit(255 levels) with just 8 resistors and 8 mosfets.
How can you get 255 steps with 8 resistors and 8 mosfet?

Can you post the schematic of such a device?

Alberto