From: Scott F. <sc...@st...> - 2009-05-15 14:44:57
|
Ok, sorry for sending this twice. I don't know if the first one went through or not. It's all garbled on the archive. Anyhow. I know I know, people are going "Not another one" but it ain't so. I got good news! I have a patch file here that enables layout transitions. Well, nothing fancy like, but the layouts do change. Each layout has its own timeout, which defaults to 5000. Now I better warn people, I don't normally program C, so it's likely I missed some of the memory management. I think I covered everything, but don't hurt me too bad if something blows up or worse. Reinforce your LCD's mounting brackets. This also adds temperature and fan plugins for the Crystalfontz driver (most of the work was already there). Here's a layout with a timeout. Layout Default { Row1 { Col1 'OS' } Row2 { Col1 'Temperature' } Row3 { Col1 'Wlan0' Col10 'Wave' Col11 'Wlan0Bar' } Row4 { Col1 'Load' Col11 'LoadBar' } Timeout 1000 } Set Timeout to 0 to keep the layout from transitioning normally. This is to allow people to program buttons to do the transitioning. And here's how to index your layouts. There should always be a Layout0. Layout0 'Default' Layout1 'TestLayer' Layout2 'L20x2' Layout3 'Test2' Layout4 'TestGPO' One last thing. In order to get things so your screen is cleared entirely between transitions, you'll have to add a clear callback to your driver. I only added it to the Crystalfontz driver. |