support pins B + and possible to setDirection?


I do simple GPIOLEDtest program of the course, but I'm doing it on GPIO04. It does not allow me to open it because it seems to allow this PIN as input.

When I try to define the 1 direction that is OUT, I get an error message "" java.lang.UnsupportedOperationException: inconsistent direction ".

I've defined API authorization to allow me to change direction, but it does not work.

Also, when I try to use the pins GPIO B + as GPIO16 I also get an error message "DeviceException: 16 device not found".

I use me version 8.1, which should provide support for the model B +.

Is this something I'm doing wrong or are these restrictions in javame8.1?

Never mind. I found the answer myself. I tried to change the direction after the opening of the device with Device Manager. Now, I found that I need to do as part of the opening of the device by giving him the right config immediately.

So I'm now using the code:

Config1 GPIOPinConfig = new GPIOPinConfig (portID, ledID, GPIOPinConfig.DIR_OUTPUT_ONLY, DeviceConfig.DEFAULT, 0, false);

LED = DeviceManager.open (config1);

Instead of:

LED = devicemanager. Open (ledID);

LED.setDirection (1);

It is the same approach as when configuring switches in later lessons.

Now, I can change the output to the output pins and I can also use the new pins raspberry model B + driuve LEDs, wuthout error messages.

Tags: Java

Similar Questions

  • Second disk HARD support interface cable and for DV7 3110ea

    I apologize if this has already been covered here.

    I need a support cable and HDD to fit a second HDD SATA interface. I think that HP 611935-001 part for the interface numbers and 532591-001 for support.

    Can anyone confirm this and possibly suggest somewhere that I could not them since partmaster HP site wasn't much help.

    I found a few of these parts online providers and prices vary from about £ 22 to £35 each. I would like to make sure they are the right parts before ordering.

    Problem solved, I have since found the parts on ebay and mounted the second hard drive.

  • My provider does not support tables MyISAM and InnoDB do I have a problem?

    Hello

    My provider does not support the MyISAM and InnoDB tables as a storage engine do I have a problem?

    Hello

    Most installations of MySQL 5.1 support both, it is possible to "lock out" one of the engines, but I have not met, (I suspect that the support does not know what you ask).

    The question you should ask yourself is, do you now or in the future support require operations or stored procedures? If the answer is Yes, then innodb is essential, as the tables myisam does not support these.

    PZ

  • ICE does not support Google Chrome and IE 8

    ICE currently only supports IE6, 7, Firefox and Safari. What would ice supports IE 8 and Google Chrome?

    Hello

    We are currently working on support for Internet Explorer 8 planning. The last date this browser will be officially supported is October 09, but we may be able to post an update as soon as possible with this hotfix included.

    Support for Google Chrome will be processed separately, mainly because, although it is a popular browser among web developers, it will take time until it will become a browser set for publishers. We would most likely start by stopping only not users access the service through this browser and move progressively towards full support.

    Thank you

    Cristinel

  • Oracle streams heterogeneous Support (non-Oracle and Oracle databases) envi

    Oracle streams heterogeneous Support (non-Oracle and Oracle databases) environments?

    It is possible to move data from Oracle to DB2 using Oracle Streams?

    Hello

    Visit this link

    http://download-West.Oracle.com/docs/CD/B28359_01/server.111/b28322/hetero.htm

    Kind regards
    Deepak

  • Does Verizon iPhone 6s more support both GSM and CDMA network?

    Agents I knew, I had confused information about what my 6s of Verizon Plus iPhone supports. Only one person in the store said that it supports as well the networks outside the United States, but no other network except Verizon in the USA. Another person said that it supports only the USA and outside CDMA network. Once I get it unlocked, it supports both GSM and CDMA outside Verizon networks in the United States and in other countries? It's the truth? Thank you very much!

    Yes. It supports both GSM and CDMA, however, many carriers non-CDMA using us what they call a "CDMA SIM". It will not work on these networks.

  • What is the best way (and possible) to remix a song mixed

    GarageBand 10.1.1

    10.11.4 OS

    Mac Book Pro

    16G RAM

    Hobby old YR 68 recording guy/try to leave a legacy

    What is the best way (and possible) to remix a song mixed

    I have a song that is most often improvised, I was told that his cool, however, re-registration is not possible.

    After reading a lot on the mixture, I now hear where the uneducated choice and errors that I made which explains the sound "not as good" that the song is.

    Before I just jump in and try to undo the settings on the tracks (one is DRUMMER) to return to the raw track before effects/eq/compression ect. is is possible to do?  Opens the unfavorable mix, rename it, save it and just go to work and cancel or disable 'things '.

    The basis of the lean mixture comes even to the root where I 'hot' securities, (orange and red)

    I guess by now you understand my question and I am open to a favorable opinion.

    Thanks in advance for your help.

    jojoguiitar_mn_usa

    I read this question so many times and I can't seem to figure out exactly what you're asking.  You just ask if you can go back in your GarageBand project and edit your tracks again?  Of course, you can, why not you?

  • HP Pavilion 500 series: I get a message saying that you have pending updates for Hp Support Assistant over and over again

    HI a little while back I upgraded to anniversary Windows 10 update things went well for me I keep hp Support Assistant on my desktop in the process of updating Windows 10 anniversary.  Finally, I decided one day to check hp Support Assistant to ensure that I had the lastestet version.  I went into Hp Support Assistant and clicked on about and clicked on the button for the latest version control, then a window is come in saying I had pending updates for Hp Support Assistant I would like to apply or not.  I pushed on the Yes button.  After the download and install updates and hp support Assistant stops and tempary files are deled then hp support Assistant will restart and return to the start page.  Everything seems to work fine download with green and white checkmarks circles with the categories above.

    I guesss I am asking for help it is because for days and days now when I go to HP support Assistant and click search the latest version that I get this message, you have pending updates for the support of hp Assistant you would like to apply or not.  I would now like to how pending updates will I have to ask a support Assistant hp until I don't see updates are available for the support of hp Assistant.

    Here is some information that might be helpful below:

    HP Supportt Assistant program file version: 16.101.7752

    How can I ensure that I have the latest version of the Support Wizard on my desktop computer.

    HP Support Assistant: 8.3.34.7

    Patch: 8.3.34.7

    Framework: 12.5.32.37

    Configuration files: 8.0.6294.2155

    Let me now is how easyier I could apply all updates waiting for the support of hp Assistant for Windows 10 home Edition 64-bit operating system.

    Thanks for your time and your help.

    @funny35,

    I'm glad that I could be useful,

    To help others looking for the same solution, please click on the tab "accepted solution".

    I thank you for your time and have a nice day!

    Kind regards

  • It is true that Firefox v11 will fully support Adobe Flash and when you go to make a version of Thunderbird mobile.

    I'll buy a HTC Merge soon and I would like to know if Firefox v11 will fully support Adobe Flash and if I decide to use v10 now this method would work https://support.mozilla.org/en-US/kb/firefox-mobile-doesn ' t-support-flash? e're = & as = NAQ if I wanted to watch flash videos on lets say on the Vimeo site also there are plans for a version of mobile of Thunderbird? I am an avid user of Thundrbird and would like to have on my Android phone.

    Mobile Firefox should work on this phone given specifications. Although we have not tested specifically on this phone.

    Firefox 11 will support Flash player Android. The Flash Android player is somewhat limited. Although going to the bottom of the Vimeo mobile page and clicking the page view desktop version allows me to play the video on their site. Deleted and panoramic frames is not surprising but I'm testing on a phone with similar specs that you look at HTC G2 (Desire Z).

    The Thunderbird team is a separate group of the mobile Firefox. I don't know what their plans are (if any) for mobile.

  • Does iOS App Store allows the old inherited app to download to support more hardware and software?

    I'm using iphone 4 on ios5.1 and can not download waze, instagram etc... because they ios7.0, app or the new paypal required ios8.0. (so even if I upgrade my ios to 7.1.2 I won t be able to use it, it s a big problem)

    There are many applications no longer works on ios5.1.

    At Apple archived older versions of applications and will make available this backwards compatible?

    Developers can submit apps for obsolete equipment and iOS version outdated on the App Store?

    Does iOS App Store allows the old inherited app to download to support more hardware and software?

    Thanks for your help.

    You can download older versions of applications if you have a computer or other device running a newer version of iOS. This explains how do.

    Install the latest compatible version of an application on an earlier version of iOS or OS X - Apple support

  • I get the message "this search engine is not supported by Firefox and cannot be installed" whenever I try to install a plugin to search on the Mozilla Add-ons site. Why?

    Any search plugin I chose to install it from the list of search plugins FireFox on the Mozilla Add-ons site, I get the same error message - "this search engine is not supported by FireFox and can not be installed. I tried to delete the 3 files in my profile identified in the article on troubleshooting plugins, but it did not help. I am running Firefox with administrator privileges, but it does not help. The problem seems to be with the search plugins. I can install other extensions that are not plugins from the Mozilla Add-ons site search, but not the search plugins. I tried restarting FireFox and restarting the computer severaltimes, but I get the same error message when I try to install a search plugin.

    Something is messed up on the pages of plugins MySapce AMO. Clear the URL bar and type something here (but do not hit Enter) - then you should be able to proceed with the installation of a search plugin.

  • Equium A80: pin 45 and 47 to weld on a non compatible drive - Solution

    This info is for those who had problems with there readers.

    My dvd drive does not work so I'm a new Pioneer one. This has much more assured that the drive provided with the satellite A80. But the pioneer played very jerky way DVD. It was of course because DMA was not enabled and allow him to anything I could do. I have changed the registry event is done everything to nothing.

    The reason seems to be that the Pioneer dvr - k16 is set to CSEL and view of the A80 seems to be ' cable select wots that! The solution was to weld the PIN 45 and 47 together on the pioneer who forces "master" mode.

    It's VERY tricky to solder and you invalidate all warranties. However the pioneer now works incredibly well.

    I'm glad I did.

    Thanks for the info, but like you said this procedure would eliminate the guarantee and perhaps soldering pins could damage the drive (if anyone has any experience).
    So I think that the best way is to buy a compatible player and do not set pins.

  • What is the PIN Vsup and how to connect to the bottom of basket NI 9932?

    I use the NI 9474 with background basket NI 9932 connector with that he came. I have skills EA of a rock, so I apologize for these basic questions:

    What is the PIN Vsup, and that means the "sup?"

    I'm trying to connect the LED to the NI 9474 (I know there are some on the module already;) I would like to try some store bought). Does anyone know how can I go about it?

    Thanks in advance.

    The 9474 requires an external 5-30 volts continuous. It's what connects to Vsup. The "sup" stands for "supply".

  • Frustrate the pop up and possible virus

    Something keeps popping up saying "error: catch after unconditional capture" over and over again on every page I open with Mozilla Firefox. It says [JavaScript Application] above. I can't find any program for this on my laptop and I've done a scan, but nothing has worked. Any suggestions?

    Hello

    You should check with the Support of FireFox and their forums.

    Support for Firefox
    http://support.Mozilla.com/en-us/KB/

    Firefox - community and live Chat
    http://support.Mozilla.com/en-us/KB/ask

    Firefox - Forums
    http://support.Mozilla.com/en-us/questions

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle=""><- mark="" twain="" said="" it="">

  • I ran the tool Microsoft Support Emergency Response and rate by looking at the report. Is there a way I can see him again?

    Led by Comcast, I ran the tool Microsoft Support Emergency Response and failure by looking at the report.  Is there a way I can see him again? Thank you.

    original title: report of ODILE

    http://support.Microsoft.com/kb/2520970

    read this.

Maybe you are looking for

  • 32D1334B LCD TV - not light power light flashes red &amp; Green

    I have a Toshiba 32D1334B LCD TV, it used to work perfectly well and then all of a sudden, it will not activate.When I plug in the TV, the power automatically light flashes red and green permanently. There is no way to turn on the TV; the screen rema

  • all emails on iphone 6 has disappeared

    All of a sudden today my recent mail has been replaced by e-mails almost 6 years... then everything disappeared. I checked the e-mail settings and he tells me that get new data is disabled. When I went to turn it on, I was unable to slide Push or cha

  • M30X touchpad has weird

    The touchpad on my M30X sometimes weird features. When I was scrolling on the vertical bars and want to then place the pointer in the text, it keeps scrolling for a while and then stops. Was looking for an update of the driver, but none is available.

  • xyboard vzw droid Forum?

    Hello world Does anyone know if verizon has a section on the forums there own to xyboard everything I see is compressed Xoom and the Galaxy, but nothing for the xyboard droid. Is that what you kindly can report the link if not how can we bring to cre

  • Magic keyboard does not

    My new magical keyboard does not work. I can't operate the volume, I can't remove the two ways (FN + DEL does not). Apparently none of the peripheral functions do not work. I tried to check the selection of the function in the keyboard settings, but