From a0785a3bb8bf3fd984d4c6b4ef92d4f2963cf2c5 Mon Sep 17 00:00:00 2001 From: Hel Gibbons Date: Wed, 16 Oct 2024 12:59:21 +0100 Subject: [PATCH] Switch LUX and PROX to be the correct way round --- examples/explorer_sensor_stick_demo.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/explorer_sensor_stick_demo.py b/examples/explorer_sensor_stick_demo.py index 2f3b80f..dfe619a 100644 --- a/examples/explorer_sensor_stick_demo.py +++ b/examples/explorer_sensor_stick_demo.py @@ -29,10 +29,11 @@ # Set the layer we're going to be drawing to. display.set_layer(0) - - lux, _, _, _, _, _, prox = ltr.get_reading() + # Read all the sensors + prox, _, _, _, _, _, lux = ltr.get_reading() ax, ay, az, gx, gy, gz = lsm.get_readings() temperature, pressure, humidity = bme.read() + # Draw readings on the screen display.set_pen(BLACK) display.clear() display.set_pen(WHITE)