Code help for Inclinometer/digital angle meter display for Lapidary machine ( gem cutting)

You might find this post interesting.