Pi4J / pi4j-v1

DEPRECATED Java I/O library for Raspberry Pi (GPIO, I2C, SPI, UART)
http://www.pi4j.com
Apache License 2.0
1.3k stars 446 forks source link

Not able to use spi in emteria.os #543

Closed ShamSinha closed 3 years ago

ShamSinha commented 3 years ago

I tried to access SPI pins with the help of Pi4j library through android app on emteria.os and using raspberry pi 3B model. In package com.pi4j/util/NativeLibraryLoader.java in line 166

String osArch = System.getProperty("os.arch"); switch (osArch) { case "arm": osArch = "armhf"; break; case "aarch64": break; default: throw new IllegalStateException("Unknown os.arch value " + osArch); }

In my system i get osArch = "armv7l" and therefore I am not able to use SPI on raspberry pi 3B model.