Pi4J / pi4j-v1

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

Not able to use spi in emteria.os #543

Closed ShamSinha closed 2 years ago

ShamSinha commented 2 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.