> Dear reader, > [some rant snipped] 1. You require from others that they provide you (for free) something that is usefull according to your rules. Then if you post on a forum, *you* might invest some time into the rules and mechanisms of that forum. You might have discoverd that we use tags here, [PIC] being the most used and the one appropriate to your posting. Without it you post will be seen by only a fraction of the people that would see it with the tag. > "Receive a button-press-caused infrared-signal from a > remote control with a TSOP1740(IR receiver module) I dunno what internet you searched for your intel, but remotes that operate at 40 kHz are a rare breed. 36 and 38 kHz are the most common. > 2. Identify the button being pressed. Then return a number > representing the button being pressed. You are aware that there are all types of remotes, often with their own protocol? There are some that are more common than others (for instance RC5), but as you state it you are asking for an interpreter that can translate "a text" for you. Though luck finding one. > All comments I have read in the code are totally > useless as they describe what everyone has already noticed. I partly agree with you, but you must keep in mind that comments can only be usefull for a specific public, a you might not fit the public the author had in mind when he wrote the comments. Or maybe you did not search well enough. Or all PIC code writers are totally stupid. Choose what you think is most probable. > What I want is the routine mentioned. So go head, write it, document it well, and make it public. James will happily provide you an internet page for it (in fact he provides you the means to make one yourself, on his server). Or are you of the kind that asks everything but never gives? PS Your claim made me curious, so I googled "ir receive code pic". The first hit is a quite adequately commented project. I did not feel like looking any further. Wouter van Ooijen -- ------------------------------------------- Van Ooijen Technische Informatica: www.voti.nl consultancy, development, PICmicro products docent Hogeschool van Utrecht: www.voti.nl/hvu -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist