well only part of code is showing somewhere the digipot needs to be declared as a variable or constant of some type ie int float double unless it is part of some library you didn't include this is a new function being created but the first two lines should say int digipot_init the next line the same int ste....