From eff6524968d89eea9b414bc6fa86b91ad4c58ec1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomislav=20Kopi=C4=87?= Date: Wed, 12 Jun 2024 20:37:40 +0200 Subject: [PATCH] Add description --- CubeGotchi.ino | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/CubeGotchi.ino b/CubeGotchi.ino index b683bb4..5c6886b 100644 --- a/CubeGotchi.ino +++ b/CubeGotchi.ino @@ -26,8 +26,12 @@ /***************************/ /***** Time and clock *****/ -#define EMULATOR_CLOCK_SPEED 1002702 // this values seems to be diferent for every single board but generaly is around 1002700 -// If game time is going faster than it should, increase this value by 1 to slow it down. +// ESP8266 is not a very good time keeping device, each one of these little shits has a different clock oscilator. +// it also seems that the temperature also effects the clock frequency so time keeps on drifting and it get's noticable after some time. +// You can play around with these 2 to try and reduce the drift: + +#define EMULATOR_CLOCK_SPEED 1002701 // this values seems to be around 1002700(+-10) +// If game time is going faster than it should, increase this value by 1 to slow it down. // fixed microsecond sleep between each cycle used to fine tune the emulator time drift even more #define FINE_TUNING_DELAY 24