mirror of
https://github.com/eclipse/upm.git
synced 2025-03-15 04:57:30 +03:00
unicode: Remove B7 unicode character from examples
The 00B7 unicode character in 4 of the Java examples can cause warnings (and possible errors) when compiling. Removed to minimize this risk. Signed-off-by: Noel Eck <noel.eck@intel.com>
This commit is contained in:
parent
7b812284c5
commit
563519ae4f
@ -31,7 +31,7 @@ public class ADC121C021Sample {
|
||||
upm_adc121c021.ADC121C021 adc = new upm_adc121c021.ADC121C021(0);
|
||||
|
||||
// An analog sensor, such as a Grove light sensor,
|
||||
// must be attached to the adc·
|
||||
// must be attached to the adc
|
||||
// Prints the value and corresponding voltage every 50 milliseconds
|
||||
while (true) {
|
||||
int val = adc.value();
|
||||
@ -43,4 +43,4 @@ public class ADC121C021Sample {
|
||||
// ! [Interesting]
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -59,7 +59,7 @@ public class HMTRPSample {
|
||||
// device, and periodically transmit "Hello World".
|
||||
|
||||
// If any argument was specified on the command line, do a simple
|
||||
// configuration query and output the results. The radio must be in·
|
||||
// configuration query and output the results. The radio must be in
|
||||
// CONFIG mode for this to work.
|
||||
|
||||
if (args.length > 0) {
|
||||
|
@ -32,7 +32,7 @@ public class LSM303DLHSample {
|
||||
|
||||
// Get the coordinate data
|
||||
sensor.getCoordinates();
|
||||
short[] coor = sensor.getRawCoorData(); // in XYZ order.·
|
||||
short[] coor = sensor.getRawCoorData(); // in XYZ order.
|
||||
// The sensor returns XZY, but the driver compensates and makes it XYZ
|
||||
|
||||
// Print out the X, Y, and Z coordinate data using two different methods
|
||||
|
@ -27,9 +27,9 @@ public class MQ303ASample {
|
||||
public static void main(String[] args) throws InterruptedException {
|
||||
// Instantiate an mq303a sensor on analog pin A0
|
||||
|
||||
// This device uses a heater powered from an analog I/O pin.·
|
||||
// This device uses a heater powered from an analog I/O pin.
|
||||
// If using A0 as the data pin, then you need to use A1, as the heater
|
||||
// pin (if using a grove mq303a). For A1, we can use the D15 gpio,·
|
||||
// pin (if using a grove mq303a). For A1, we can use the D15 gpio,
|
||||
// setup as an output, and drive it low to power the heater.
|
||||
upm_mq303a.MQ303A mq303a = new upm_mq303a.MQ303A(1, 15);
|
||||
|
||||
@ -50,4 +50,4 @@ public class MQ303ASample {
|
||||
System.out.println("Exiting");
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user