anvo / rf24-bcm-java

Java wrapper for the nRF24L01 library
9 stars 5 forks source link

Configuration #1

Closed jamnikr closed 8 years ago

jamnikr commented 8 years ago

Hi, How to change c++ configuration (RF24 radio(RPI_V2_GPIO_P1_22, RPI_V2_GPIO_P1_24, BCM2835_SPI_SPEED_1MHZ);) to java code? thx

jamnikr commented 8 years ago

solution: RF24 radio = new RF24((short) 25/* RPI_V2_GPIO_P122/, (short) 8/_ RPI_V2_GPIO_P124 /, (long) 256/_ BCM2835_SPI_SPEED_1MHZ */);

anvo commented 8 years ago

See also the example in GettingStarted.java