now settings frequencies and pin indices in init()