Beginner questions about rogloh's p2videodrv
Hi all. I'm slowly trying to learn how to use rogloh's p2videodrv (thread) and I have questions. Let's start with this:
- How does one determine an appropriate _clkmode and _clkfreq?
For example, in complexdemo.spin2 (from p2videodrv0_91b), I see
CLK108MHz = %1_000100_0000011010_1111_10_00 '(20MHz/5) * 27/1 = 108 MHz _clkmode = CLK108MHz ' setup a default clock _clkfreq = 108_000_000
but in P2_CharacterMapDemo.spin2 (from Quick Bytes) I see
_clkfreq = 252000000 ' initial clock rate (would be changed for a given video mode)
and in helloworld.spin2 (from p2textdriver0.93) I don't see _clkfreq or _clkmode at all!?
What's going on here?