I made a level meter using the IMU block’s accelerometer and the LED block. At first I wanted to have a single LED move in the X-Y plane depending on how you tilted the blocks, however with logic gates I could only represent one axis. Perhaps it is something I will make in the future when I go into the more advanced features of the blocks (I did it).
To use the logic gates for this function I made 8 images with one column of LEDs on at a time. I moved the column over for each one and labelled them 1-8 in the LEDMatrix pattern maker.
I wanted to do a switch case for the 8 scenarios but the CHOICE Gate is limited to 4 options, so I just used a LESS THAN Gate to separate the upper and lower values and just used two CHOICE Gates instead.
It might be cool in the future to animate this with a moving character inside, somewhat tamagotchi style but instead of using buttons to interact, use the accelerometer.