B4A Library IOIO board library

Discussion in 'Additional libraries, classes and official updates' started by agraham, Apr 30, 2011.

  1. kolbe

    kolbe Active Member Licensed User

    I tried this some time back but BT in b4j is not the same as the one in b4a so never got it to work. I could try revisiting this now that b4j has evolved further.
     
  2. kolbe

    kolbe Active Member Licensed User

    I can look into this, I do some version checks maybe some are wrong. Several things have to come together for Accesory to work. Nexus devices seem to work best.
     
  3. kolbe

    kolbe Active Member Licensed User

    Didn't follow the thread to the end. Good to hear it worked. Sounds like it was firmware related.
     
  4. kolbe

    kolbe Active Member Licensed User

    Looks like its about time to update the library. Ytai's library has had some changes but nothing major and no functionality changes just minor things. Kinda busy with other things but it's on the list for this month. All my projects continue to work fine all the way up to Android 6.0.1. After the update I'll see about looking into b4j.
     
    Cableguy likes this.
  5. kolbe

    kolbe Active Member Licensed User

    I just uploaded version 2.07 of the IOIO library. It includes the latest commits from Ytai plus a few bug fixes and doc corrections.

    For this version your IOIO should be running version 5.06 of the application firmware.

    The IOIO has become a solid platform. It offers a unique functionality still today and does what it was designed to do well. Although there isn't a lot of activity it is still being supported by Ytai and I intend to here at B4A as well.
     
    Last edited: Jun 9, 2016
    Cableguy and Erel like this.
  6. Cableguy

    Cableguy Expert Licensed User

    with the newcomer B4R, inter-action between IO-IO and Arduino ( hardware based ) should make them a very powerful combo!!!
     
  7. kolbe

    kolbe Active Member Licensed User

  8. ecastelli201

    ecastelli201 Member Licensed User

     
  9. dnaci

    dnaci Member Licensed User

    Hello. The error I get is below. What could be the solution. Ican use IOIOB4ADemo.zip files.

    B4A version: 6.50
    Parsing code. (0.00s)
    Compiling code. (0.04s)
    Compiling layouts code. (0.02s)
    Organizing libraries. (0.01s)
    Generating R file. (0.11s)
    Compiling debugger engine code. (1.59s)
    Compiling generated Java code. (1.79s)
    Convert byte code - optimized dex. Error
    UNEXPECTED TOP-LEVEL EXCEPTION:
    java.lang.IllegalArgumentException: already added: Lanywheresoftware/b4a/agraham/ioio/B4AIOIO$B4AAnalogueInputWrapper;
    at com.android.dx.dex.file.ClassDefsSection.add(ClassDefsSection.java:122)
    at com.android.dx.dex.file.DexFile.add(DexFile.java:161)
    at com.android.dx.command.dexer.Main.processClass(Main.java:615)
    at com.android.dx.command.dexer.Main.processFileBytes(Main.java:570)
    at com.android.dx.command.dexer.Main.access$2(Main.java:546)
    at com.android.dx.command.dexer.Main$2.processFileBytes(Main.java:514)
    at com.android.dx.cf.direct.ClassPathOpener.processArchive(ClassPathOpener.java:284)
    at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:166)
    at com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:144)
    at com.android.dx.command.dexer.Main.processOne(Main.java:537)
    at com.android.dx.command.dexer.Main.processAllFiles(Main.java:449)
    at com.android.dx.command.dexer.Main.runMonoDex(Main.java:236)
    at com.android.dx.command.dexer.Main.run(Main.java:206)
    at com.android.dx.command.dexer.Main.main(Main.java:179)
    at com.android.dx.command.Main.main(Main.java:103)
    UNEXPECTED TOP-LEVEL EXCEPTION:
    java.lang.IllegalArgumentException: already added: Lioio/lib/api/TwiMaster$Rate;
    at com.android.dx.dex.file.ClassDefsSection.add(ClassDefsSection.java:122)
    at com.android.dx.dex.file.DexFile.add(DexFile.java:161)
    at com.android.dx.command.dexer.Main.processClass(Main.java:615)
    at com.android.dx.command.dexer.Main.processFileBytes(Main.java:570)
    at com.android.dx.command.dexer.Main.access$2(Main.java:546)
    at com.android.dx.command.dexer.Main$2.processFileBytes(Main.java:514)
    at com.android.dx.cf.direct.ClassPathOpener.processArchive(ClassPathOpener.java:284)
    at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:166)
    at com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:144)
    at com.android.dx.command.dexer.Main.processOne(Main.java:537)
    at com.android.dx.command.dexer.Main.processAllFiles(Main.java:449)
    at com.android.dx.command.dexer.Main.runMonoDex(Main.java:236)
    at com.android.dx.command.dexer.Main.run(Main.java:206)
    at com.android.dx.command.dexer.Main.main(Main.java:179)
    at com.android.dx.command.Main.main(Main.java:103)
    2 errors; aborting
     
  10. Cableguy

    Cableguy Expert Licensed User

    you seem to have 2 ioio lib versions added to your project(?)
    the errors are "simply" complaining of already added entries by the lib... so either you still have an older version referenced or existing in the project folder, of there seems to be an inner error on the lib
     
  11. dnaci

    dnaci Member Licensed User

    Thanks Cableguy. When ioio bt (v1.50) and ioiolibbt(v.3.20) library files are removed from the project, normal compilation is done. I need use bluetooth connection. But what version of bluetootht should I try?
     
  12. sorex

    sorex Expert Licensed User

    Did anyone ever succeed to read out a S18D20 temp. sensor via ioio on android?

    Or which temp. sensor will work for sure?
     
  13. kolbe

    kolbe Active Member Licensed User

    Sorry for the delay in replying but don't do much with the IOIO anymore and didn't see the post.

    That sensor uses OneWire and as far as I know IOIO can't do Onewire. You should find a sensor that uses i2c or SPI or serial or analog.
     
Loading...
  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