mirror of
https://github.com/eclipse/upm.git
synced 2025-07-02 01:41:12 +03:00
light: modify so C++ wraps C code
This also provides some more functionality. get_raw() has been deprecated in favor of using getNormalized(). Signed-off-by: Jon Trulson <jtrulson@ics.com>
This commit is contained in:
@ -25,13 +25,13 @@
|
||||
public class LightSample {
|
||||
public static void main(String args[]) throws InterruptedException {
|
||||
// ! [Interesting]
|
||||
upm_light.Light gl = new upm_light.Light(2);
|
||||
upm_light.Light gl = new upm_light.Light(0);
|
||||
|
||||
while (true) {
|
||||
float raw_value = gl.raw_value();
|
||||
float raw_value = gl.getNormalized();
|
||||
float value = gl.value();
|
||||
|
||||
System.out.println("raw value: " + raw_value);
|
||||
System.out.println("normalized: " + raw_value);
|
||||
System.out.println("value: " + value);
|
||||
|
||||
Thread.sleep(1000);
|
||||
|
Reference in New Issue
Block a user