Memory Stick Detector

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
Sleepy566
Posts: 23
Joined: Thu Dec 28, 2006 2:30 am

Memory Stick Detector

Post by Sleepy566 »

I'm very new at programming, and I want my program to write and read off of the memory stick, so the first thing I need is a way to tell if the memory stick is in.

What does the code for this look like?

I know I need these three:

Code: Select all

PSP_MODULE_INFO("name", 0x1000, 1, 1);
and
PSP_MAIN_THREAD_ATTR(0);
plus the
PSP_CTRL_MS 
but I am not sure how to make it check and display a message. I believe you need to loop, but I am stuck at that.

If somebody can show me code for a memory stick detecting program, then that would be extremely helpful.

Thanks to all that help!

-Sleepy
User avatar
dot_blank
Posts: 498
Joined: Wed Sep 28, 2005 8:47 am
Location: Brasil

Post by dot_blank »

take a look at the MScm lib sample and header files for prototypes
10011011 00101010 11010111 10001001 10111010
Post Reply