Very simple code for cd74hc4067 needed....please!!! Input selector

Hello all,

I am hoping that there is someone here that can help as I am brand new to the whole world of Arduino. Wiring and hardware is no particular problem but I am having a bit of trouble with coding.
To explain;

I have a cd74hc4067 MUX connected to an Arduino Nano and would like to be able to select from specific inputs and route the signal to the output (very simple analogue signals).
Ideally i would like to select from the COM window for now using simple text commands
In effect I would like to create a software 'rotary switch'.
I understand the theory but my lack of coding knowledge is putting the brakes on!!!

Any help that could be offered would be greatly appreciated.

Post your schematic and your best attempt at a sketch. Read the the forum rules first so you know how to post code correctly.

The 4067 expects 4-bit binary (nibble) to select the 16 inputs.
There are lots of binary counter examples with LEDs around. Google it.
Leo..

I understand the theory of what needs to be done..... I need a starter piece of advice on how to cycle through the 4bit input sequence. I will not need to read any data as the signal will just be passing through the MUX.
As I haven't coded for over 25years I am really just after some pointers and if those aren't forthcoming then a forum that can help with absolute beginners.

Welcome to Arduino land B1mb0!

Edit:
Shows 1 to 16 outputs, and 16 to 1 inputs and 16 Analog i/ps to A0

.