Help in calculating resistor values for AMS1117-adj
While it is possible to use an 1117 regulator as a constant current source, the images on your question show an incorrect diagram.

The ones on your question are for a constant voltage supply.

For constant current you need the following:



From this datasheet page 11.

To output 80mA: 

0.08 = 1.25/R + Iadj

I'll ignore Iadj:


  Iadj, is
  significantly lower and constant with respect to the
  programmed load current, it generates a small output
  voltage error that can usually be ignored. 


0.08 = 1.25/R

R = 1.25/0.08 = ~15R