adding an example using analogic and digital ports