Skip to content

Commit 810bc91

Browse files
authored
Merge pull request #10 from kattni/level-bubble-fix
Make the bubble 'rise' like the real thing would.
2 parents af4f935 + 128bf8c commit 810bc91

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

README.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,14 @@ This driver depends on:
2929
* `Adafruit BMP280 <https://github.com/adafruit/Adafruit_CircuitPython_BMP280>`_
3030
* `Adafruit SHT31D <https://github.com/adafruit/Adafruit_CircuitPython_SHT31D>`_
3131
* `Adafruit NeoPixel <https://github.com/adafruit/Adafruit_CircuitPython_NeoPixel>`_
32+
* `Adafruit Display Text <https://github.com/adafruit/Adafruit_CircuitPython_Display_Text>`_
3233

3334
Please ensure all dependencies are available on the CircuitPython filesystem.
3435
This is easily achieved by downloading
3536
`the Adafruit library and driver bundle <https://circuitpython.org/libraries>`_.
3637

38+
Demos may require libraries not listed here.
39+
3740
Installing from PyPI
3841
=====================
3942
.. note:: This library is not available on PyPI yet. Install documentation is included

examples/clue_spirit_level.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,5 @@
2424

2525
while True:
2626
x, y, _ = clue.acceleration
27-
bubble_group.x = int(x * 10)
28-
bubble_group.y = int(y * 10)
27+
bubble_group.x = int(x * -10)
28+
bubble_group.y = int(y * -10)

0 commit comments

Comments
 (0)