Stepped Graph getting error

Is it necessary to pass 3 parameters to steppedGraph function?
It was showing error when I tried to pass just 2 arguments.

@anmolkhemuka8 Could you explain what error it is showing?

1 Like

@anmolkhemuka8 Try to change the pin from A0 to 0. You won’t be getting this error again as shown below.

where I need to change it . I could not get your point. My doubt is that when I tried to pass just 2 arguments in steppedGraph function I am getting error whereas on passing 3 argumenst I am not getting error. so why this is happening?