# 
# Ads1115 4-channel A/D converter example script
#

@@ -1,8 +1,24 @@
 #
- 
 %0A#
+ Example code for
  Ads
@@ -37,9 +37,8 @@
 el A
-/
 D co
@@ -49,21 +49,952 @@
 ter 
-example script%0A#
+on the i2c bus.%0A#%0A%0Awebgui = Runtime.createAndStart(%22WebGui%22,%22WebGui%22)%0Aads1115 = Runtime.createAndStart(%22Ads1115%22,%22Ads1115%22)%0A%0A# This section is to be used if you use the i2c pins of the Arduino%0Aarduino = Runtime.createAndStart(%22Arduino%22,%22Arduino%22)%0Aarduino.connect(%22COM3%22)%0A# Sleep so that the Arduino can be initialized%0Asleep(4)%0Aads1115.setController(arduino,%221%22,%220x48%22)%0A%0A# This section is to be used if you use the i2c pins of the Raspberry PI%0A# raspi = Runtime.createAndStart(%22Raspi%22,%22RasPi%22)%0A# ads1115.setController(raspi,%221%22,%220x48%22)%0A%0A# This section is common and shows how you can get the raw adc values and the voltages%0Aads1115.refresh()%0Aprint %22adc0 raw value%22, ads1115.adc0%0Aprint %22adc1 raw value%22, ads1115.adc1%0Aprint %22adc2 raw value%22, ads1115.adc2%0Aprint %22adc3 raw value%22, ads1115.adc3%0Aprint %22adc0 voltage%22, ads1115.voltage0%0Aprint %22adc1 voltage%22, ads1115.voltage1%0Aprint %22adc2 voltage%22, ads1115.voltage2%0Aprint %22adc3 voltage%22, ads1115.voltage3%0A%0A%0A
 %0A

Update Ads1115.py