Java and Raspberry Pi Programming - Installing Java Native Interface (JNI)

preview_player
Показать описание
Throughout my Java SE and Raspberry Pi tutorials, I have kept the coding at the highest possible level in order to keep things as simple as possible. All along I knew that at some point I would have to use Java Native code to communicate at a very low level with the GPIO. I need to use PWM (Pulse Width Modulation) to control the speed of the motor on the Land Cruiser. The Raspberry Pi only has one hardware PWM pin and I am using that one to control the steering, so I will need to use the C pigpio library to produce another PWM signal to control the Electronic Speed Controller (ESC) for the motor. I will go over the pigpio library in a future tutorial. Java SE 8 comes preinstalled on the Raspberry Pi 3, but it is missing several key components of the JNI - so we will need to download and install it.
Рекомендации по теме
Комментарии
Автор

Put anything under that keyboard man, we get it, you love your CLICK.

stevenoxendine
Автор

Is it called Java and Raspberry Pi Programming?
I do not understand why we had to create a header and then everything else ...?
You do not explain why we use c ++ here
So far, it was a good series ;-)

tomast