Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

5
  • That worked! Thanks! I was able to only print channel 3 info to the serial monitor. The ultimate goal was to map channel 3 using: int a = TinyPpmReader.width_us(3); But if you check the new code I just added above (below original post) I am not able to map this as an integer for some reason. I added arrows where I changed the code to try to map channel 3. Why does it not compile or map like this? Commented Jan 7, 2017 at 20:40
  • Glad to hear it. This is a new question really - we should stick to one question per, erm, question. If you post a new question I (or others) will try to help. Commented Jan 7, 2017 at 20:51
  • That said, perhaps you're not clear what PPM_INPUT_PIN is. It's just the number of the pin - not the reading taken from that pin or anything - simply a way to identify the pin. With that in mind, int PPM_INPUT_PIN = TinyPpmReader.width_us(3); looks nonsensical. Commented Jan 7, 2017 at 21:01
  • OK, I will post another question and try to clarify. This question plus the new one hopefully will help people see how to access the array and map it .Thanks again Mark. Very appreciated! Commented Jan 7, 2017 at 23:16
  • posted new question about mapping the input here: arduino.stackexchange.com/questions/33224/… Commented Jan 10, 2017 at 16:08