Pi4J / pi4j-v2

Pi4J Version 2.0
Apache License 2.0
269 stars 56 forks source link

Create ADC and DAC analog IO provider examples #34

Open savageautomate opened 4 years ago

savageautomate commented 4 years ago

The Pi4J V2 API supports analog input and output providers and interfaces.
However, since the RaspberryPi does not include native analog support we should create some examples analog input and analog output providers as reference examples for others how wish to create their own IO providers.

See: https://github.com/DanielMartensson/OpenSourceLogger/issues/2

DanielMartensson commented 4 years ago

I would recommend rewriting STM32 C libraries to Java. I have a repository about C libraries for STM32

DanielMartensson commented 3 years ago

My ADS1115 library works good with Pi4J 2.0

FDelporte commented 3 years ago

Daniel, you have a link?

DanielMartensson commented 3 years ago

Daniel, you have a link?

https://github.com/DanielMartensson/OpenSourceLogger/blob/master/src/main/java/se/danielmartensson/pi4j/ADS1115_ADS1015.java

DanielMartensson commented 3 years ago

@FDelporte

By the way! Do you have an example for PWM? Mine won't work for me in OpenSourceLogger repository. Else, the OpenSourceLogger works perfect. Excellent tool for logging 4-20 mA data into a database quick.