-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tamalib MCU frequency #9
Comments
Hi, sorry for the delay ! The frequency in Note that since the emulation is not cycle-accurate, you can have a logical time base with a granularity higher than the one of your hardware. For instance, you can have a counter with a granularity of 1µs (1000000 Hz), incremented by an HW timer running at 1000 Hz (thus doing |
Many thanks @jcrona ! short version:
I'm having a perfect timing now :) |
Not an issue, just a question.
It was pretty easy to run tamalib and Tamagothi P1 on Raspberry Pi Pico Clone RP2040 with a SSD1306 display, but i got some problem to understand how to set the correctly run frequency to get the time and speed run correctly.
bool_t tamalib_init(const u12_t *program, breakpoint_t *breakpoints, u32_t freq);
In
tamalib_init
does the freq value mean the MCU frequency?If yes, does the
sleep_until
function used to add a delay and simulate the 32768Hz?The text was updated successfully, but these errors were encountered: