Shop OBEX P1 Docs P2 Docs Learn Events
Count function for Propeller C/C++ — Parallax Forums

Count function for Propeller C/C++

Howdy, how does one get the count function to print its return value to the debug terminal?

long count ( int pin,
long duration
)

Comments

  • You would just do something like "printf("count = %d\n", count(pin, duration));". Or you could use the print function instead, but I dislike using the non-standard print function that is virtually the same as the standard printf function.
  • Awesome, thanks! : ]
Sign In or Register to comment.