Okay, I get the main idea, thank you so much!
But my code is still pretty messed up. I need to study how to set it so that it runs from 270º to 270º (that is from 9 to 9 hours), and fix the pointer, which apparently is wrong, since it is rotating without angle, and horizontally.