Wish:IOIO support

Discussion in 'Bugs & wishlist' started by meirmark, Apr 19, 2011.

  1. meirmark

    meirmark New Member

    It will be very nice if B4A will support the IOIO (hiip://ytai-mer.blogspot.com/2011/04/meet-ioio-io-for-android.html) for controling hardware with Android platform.

    Meir Mark.
    KZero likes this.
  2. agraham

    agraham Expert Licensed User

    I'd be happy to look at a library for this but the software doesn't seem to be available yet.
  3. agraham

    agraham Expert Licensed User

    First go at a IOIO library now posted in anticipation of the board availability.
  4. kolbe

    kolbe Active Member Licensed User

  5. agraham

    agraham Expert Licensed User

    Sorry, I've stopped doing Android development now so there won't be another version (from me anyway).
  6. kolbe

    kolbe Active Member Licensed User

    Sorry to hear that.

    Thanks for all you have done, you have certainly contributed a bunch.

    Anybody out there care to pick up this library?
  7. hdtvirl

    hdtvirl Active Member Licensed User

    Andrew when you say you have stopped Android development does that mean ALL Android Development ?

    I would like to thank you for all the time and effort you put in to help those of us

    who needed your help and I wish you a Long and Fruitful Road with Visual Studio 2010.


  8. agraham

    agraham Expert Licensed User

    'fraid so - apart from perhaps very minor fixes. I write code for fun and Android, for various reasons, has stopped being fun so I'm going back to play with C# and Windows Forms/Basic4ppc.
  9. Tom Christman

    Tom Christman Active Member Licensed User

    Andrew, I'd like to add my thanks as well. You're libraries and assistance to Forum members have been so much help to many of us (and will continue to do so). Thanks for all your body of work in B4A, and enjoy your future endeavors.
  10. ckoehn

    ckoehn Banned

    I too would like to wish you well and BEG someone to continue agraham's work with the IOIO board library. Would one of you other great library makers update the IOIO library. PLEASE!!!!!!!

  11. kolbe

    kolbe Active Member Licensed User


    Would you consider posting your ioio eclipse project? I've spent the last few days getting familiar with eclipse. I can create the sample ioio apks and created the forum's example library. Not being very familiar with java, I'd appreciate your project as a wrapper example. No promises but I'm at least going to give it a try.

    I was hoping Tomas or Markus would show an interest in this library but...

  12. agraham

    agraham Expert Licensed User

    Here are the two present projects for IOIOBT. As far as I can remember IOIOlib is a straight recompilation of the original source with no modifications. I put it in a project so I could see the source code I was interfacing to.

    Attached Files:

  13. NawtyBean3D

    NawtyBean3D New Member Licensed User

  14. kolbe

    kolbe Active Member Licensed User

    Here is a bit of code that gives you an idea how to use pwm and what it does.

    'Activity module
    Sub Process_Globals
    'These global variables will be declared once when the application starts.
       'These variables can be accessed from all modules.
       Dim yoyo As IOIOBT
    Dim led As PwmOutput
    End Sub

    Sub Globals
    'These global variables will be redeclared each time the activity is created.
       'These variables can only be accessed from this module.

    Dim ToggleButton1 As ToggleButton
    Dim SeekBar1 As SeekBar
    Dim SeekBar2 As SeekBar
    End Sub

    Sub Activity_Create(FirstTime As Boolean)
    End Sub

    Sub Activity_Resume

    End Sub

    Sub Activity_Pause (UserClosed As Boolean)
    If UserClosed Then yoyo.Disconnect
    End Sub

    Sub SeekBar1_ValueChanged (Value As Int, UserChanged As Boolean)
    led.PulseWidth=Value 'value is in microseconds
       Activity.Title="pulse width is "&Value&" microseconds"
    End Sub

    Sub SeekBar2_ValueChanged (Value As Int, UserChanged As Boolean)
    led.DutyCycle=Value/100 'value is in %
       Activity.Title="duty cycle is "&Value&"% of 10Hz"
    End Sub

    Sub ToggleButton1_CheckedChange(Checked As Boolean)
    If Checked Then
    led = yoyo.OpenPwmOutput( 0,led.OP_NORMAL,10' Enable LED_PIN for output
    End If
    End Sub
  15. rbsoft

    rbsoft Active Member Licensed User

    Wow - that's a blow to the community! I'd like to thank you anyway for all your contributions. Too bad for the IOIO library. I just started to work with it.

  16. agraham

    agraham Expert Licensed User

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice