Yes I've slept on it, so I'll be aiming for the long low pulse as my 'start of sequence' then working on the bits. It annoys me that I have to go to work for 8 hours before I can test this
Edit
Ok, so the long pulse is 4.6 ms long - so I should increase DEFINE PULSIN_MAX 3000 to say DEFINE PULSIN_MAX 5000 yes?
Or is that calculated the same was as the actual pulsein is calculated...
ie: DURATION / CLOCKSPEED
In which case... 3000 is just perfect
Bookmarks