Here is an alternative approach, which is not as quick as @Biran M. Scotts answer :).
Multiply the recurrence equation with $x^n$ and sum from $n=0$ to $n=\infty$ (dont care about convergence).
$$\sum_{n=0}^{\infty}f(n+1)x^n=\sum_{n=0}^{\infty}f(n)x^n+\sum_{n=0}^{\infty}1/2^nx^n$$
$$\frac{1}{x}\sum_{n=0}^{\infty}f(n+1)x^{n+1}=\sum_{n=0}^{\infty}f(n)x^n+\sum_{n=0}^{\infty}1/2^nx^n$$
$$\frac{1}{x}\left(\sum_{n=0}^{\infty}f(n)x^{n}-f(0)x^0\right)=\sum_{n=0}^{\infty}f(n)x^n+\sum_{n=0}^{\infty}1/2^nx^n$$
Now, use $f(0)=0$, use the infinite geometric series
$$\sum_{n=0}^{\infty}1/2^nx^n=\sum_{n=0}^{\infty}(x/2)^n=\frac{1}{1-x/2}$$
and bring both sums with $f(n)x^n$ and to the left side:
$$(1/x-1)\sum_{n=0}^{\infty}f(n)x^{n}=\frac{1}{1-x/2}.$$
This is the same as
$$\sum_{n=0}^{\infty}f(n)x^{n}=\frac{1}{(1-x/2)(1/x-1)}=2x\left[ \frac{1}{1-x}-\frac{1}{2}\frac{1}{1-x/2}\right].$$
Now, use the geometric series for the fractions on the right hand side:
$$\sum_{n=0}^{\infty}f(n)x^{n}=\sum_{n=0}^{\infty}(2-1/2^n)x^{n+1}.$$
Note, that the first sum is equal to $\sum_{n=0}f(n+1)x^{n+1}$, because $f(0)=0$. Using this observation and comparing the coefficients of both sums we obtain:
$$f(n+1)=2-1/2^n.$$
After the substitution $n \to n-1$, we obtain:
$$f(n)=2-1/2^{n-1}.$$