cemonds

Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • in reply to: Use DigitShield together with Servo #2187
    cemonds
    Member

    You are right about the timer2, sorry. Ok, I made some tests and found a workaround. It seems if using the servo library somehow disables the ISR of the DigitShield library and so the display is not updated. If i don’t use any delay() and call regularly DigitShield.isr() in my loop() the display is working. Right now I have no idea why the workaround is necessary but I can live with that. Thanks for your assistance 🙂

    in reply to: Use DigitShield together with Servo #2185
    cemonds
    Member

    Unfortunately I permanently move the servo, so disabling the display is not an option. As far as i know the servo library uses only timer 1 on arduino uno, right? since the digit shield uses also timer 1 this seems to be the cause of the problem. There is some code (currently commented out) within the digit shield library for using timer 2 would that be an option? I tried to use this code path, but didn’t get it to work. Since this project is especially aimed at beginners i don’t want to use a non standard method to control the servo, but i would be glad to be able to use the digit shield also.

Viewing 2 posts - 1 through 2 (of 2 total)