LGTMCU / Larduino_HSP

Hardware support package for Larduino
MIT License
138 stars 68 forks source link

Delay() dont function. #4

Open kostyamat opened 5 years ago

kostyamat commented 5 years ago

Hey. I compiled a sketch that worked perfectly on the original Atmega328. I see that the delay() function does not work at all, and millis() behaves very strangely, instead of the interval of 15 seconds, I get about 30. How can I properly configure the MCU?

LGTMCU commented 5 years ago

This is not a fully comptible version. Timer1 is now configured for PWM functions, I have configure timer2 for time base generation (which is timer1 in original arduino). But I have configure timer2 to keep the comptiblity. I will do some tests. P.S, if you do not care about PWM extension, you can try a more compatible version attahced.

Larduino_HSP_v3.6c.zip