Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

DeviceManager for SDK 8.2 ME and Raspberry Pi GPIO

HarrySattJan 7 2016 — edited Jan 7 2016

Hi

I figured out that there is a problem within the documentation.

https://docs.oracle.com/javame/8.2/get-started-rpi/piportsapdx.htm

This doc should give us the used pin numbers for several predefined devices.

For example:

2GPIO7GPIO 7controllerNumber = 0

pinNumber = 7

direction = GPIOPinConfig.DIR_OUTPUT_ONLY

mode = GPIOPinConfig.MODE_OUTPUT_PUSH_PULL

trigger = GPIOPinConfig.TRIGGER_BOTH_EDGES

initValue = false

here we see a predefined device 2 named GPIO7 with pin number 7. This is not correct. The correct pin number should be pinNumber = 26. The other predefined devices have the same problem.

Device 4 corresponds to pinNumber = 12 not to pinNumber = 18 as in the doc.

I try to figure out all the correct pinNumbers and seems that the drawing at the end of the device list might be correct. It is for Raspberry Pi B. For RPi B+ and RPi 2 Mod B further investigation is needed.

My question: where do I have to report errors in the document?

Harald.

Comments

Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Feb 4 2016
Added on Jan 7 2016
1 comment
1,520 views