Skip to content

Commit

Permalink
Merge pull request #20 from pimoroni/examples/luxprox
Browse files Browse the repository at this point in the history
Examples: switch LUX and PROX
  • Loading branch information
helgibbons authored Oct 17, 2024
2 parents 5eb7def + a0785a3 commit d493728
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions examples/explorer_sensor_stick_demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d493728

Please sign in to comment.