Wish:IOIO support

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.

Thanks
Meir Mark.
 

kolbe

Active Member
Licensed User
Longtime 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?
 

hdtvirl

Active Member
Licensed User
Longtime 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.


Regards

BOB
 

agraham

Expert
Licensed User
Longtime User
Andrew when you say you have stopped Android development does that mean ALL Android Development ?
'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.
 

Tom Christman

Active Member
Licensed User
Longtime 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.
Tom
 

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!!!!!!!

Clint
 

kolbe

Active Member
Licensed User
Longtime User
Andrew,

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...

Thanks
 

agraham

Expert
Licensed User
Longtime 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.
 

Attachments

  • IOIOBT1.6.zip
    24.3 KB · Views: 277
  • IOIOlibBT.zip
    175.9 KB · Views: 325

kolbe

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

B4X:
'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)
   
   Activity.LoadLayout("main")
   SeekBar1.Max=100000
   SeekBar2.Max=100
   
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
      yoyo.Initialize(False)
      yoyo.WaitForConnect
      led = yoyo.OpenPwmOutput( 0,led.OP_NORMAL,10) ' Enable LED_PIN for output
   Else
      yoyo.Disconnect
   End If
   
End Sub
 

rbsoft

Active Member
Licensed User
Longtime User
Sorry, I've stopped doing Android development...

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.

Rolf
 
Top