Just in case you're curious, here is an overload for initializing a pin as a pulse-input in single-precision mode: This would open IN_PIN as a single-precision pin with a clock rate of 250KHz and measuring the time the signal stays high.
// input = ioio_.openPulseInput(Spec spec, ClockRate clock_rate, PulseMode mode, boolean double_precision) Input = ioio_.openPulseInput(new Spec(IN_PIN), ClockRate.RATE_250KHz, PulseMode.POSITIVE, false); More detailed explanations are available in the javadoc. Tyler On Tuesday, September 8, 2015 at 12:28:45 AM UTC-7, Tyler wrote: > > Gabor, > > Based on the datasheet for the pic24FJ256 family, there are 9 input > capture modules that can be configured any way you like. You should be able > to do as you propose, unless the IOIO firmware is purposefully limiting > you, which I doubt. > > Have you tried it yet? The IOIO firmware will tell you if you try to > initialize something illegally (with a runtime exception). > > Tyler > > On Monday, September 7, 2015 at 11:16:58 PM UTC-7, Gabor Schilten wrote: >> >> Hi, >> >> For an interesting new project, i have to intercept 6 rc receiver >> channels, and around 4 ultrasonic sensors to start with. >> Outputting 6 pwm signals then for all engines and servo's.. >> >> However, according to the wiki, we only have 3 *single-precision* and 3 >> *double-precision* pulse input modules. >> If I'd exchange the 3 doubles for 6 single precision, I'd end up with 9. >> >> Is there something I'm missing here? Or do I need to look for eather >> another IOIO board or Sensors based on I2C? >> >> Thanks. >> >> Gabor >> > -- You received this message because you are subscribed to the Google Groups "ioio-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/ioio-users. For more options, visit https://groups.google.com/d/optout.
