Need Mac code to turn off IO-Warrior 24's LCD.

This is the English forum for all topics related to IO-Warrior. Please post in English only

Moderator: Guido Körber

Post Reply
blakespot
Posts: 10
Joined: Sun Sep 17, 2006 10:42 pm

Need Mac code to turn off IO-Warrior 24's LCD.

Post by blakespot »

I've been looking at this project (based on an IO-Warrior 40) as an example:

http://monitzer.com/iowarrior/

I need to modify certain parts of that code...

Code: Select all

            data[0]=0x04;
            data[1]=0x01;
            data[2]=0x00;
            data[3]=0x00;
            data[4]=0x00;
            data[5]=0x00;
            data[6]=0x00;
            data[7]=0x00;
            data[8]=0x00;

            IOWarriorWriteToInterface(self->iowarrior, 0x8, data);

            data[0]=0x05;
            data[1]=0x02;
            data[2]=0x01;
            data[3]=0x0c;
            data[4]=0x00;
            data[5]=0x00;
            data[6]=0x00;
            data[7]=0x00;
            data[8]=0x00;

            IOWarriorWriteToInterface(self->iowarrior, 0x8, data);
...to clear and turn off an IO-Warrior 24-driven screen (20x4). Does anyone have the code just ready to go - to just clear and turn off a IO-Warrior 24 screen on the Mac? Thanks!

(The reason is, I use an app that drives the screen, but due to certain circumstances, I must exit this app occasionally with a KILL command - doing that (even a KILL -3) quits the app but leaves the screen lit and with a static display - the last frame of data sent by the now-dead app. I want to close it down with the little code I speak if, in a standalone exec.)

blakespot
::
:: http://www.ipodhacks.com
:: iPod Hacks
::
Guido Körber
Site Admin
Posts: 2856
Joined: Tue Nov 25, 2003 10:25 pm
Location: Germany/Berlin
Contact:

Post by Guido Körber »

The "IOWarriorCLItest" talks to the LCD.
Post Reply