You have unsaved changes. If you choose to leave all changes will be discarded.
KnightRider style sequence on Ports C & D LED's This project demonstrates the use of several animation structures and a useful fader, you can use these structures for whatever purpose you wish. The only thing I ask is please leave the comment blocks unmodified. Added support for P18F4550 as well as P18F45K22. Feedback welcome.
Do you want to subscribe in order to receive notifications regarding "KnightRider on easyPIC v7" changes.
Do you want to unsubscribe in order to stop receiving notifications regarding "KnightRider on easyPIC v7" changes.
Do you want to report abuse regarding "KnightRider on easyPIC v7".
Video of effect.Watch on YouTube
The project demostrates the implementation of several structures, a fader that allows you to create fading effects In or Out on individual LED's. There is also an animation structure that allows you to create sequences and patterns on a Port.
I plan to expan this to allow you to chain multiple animation sequences together by making the animation structure a linked list. The next version will span multiple ports and I will add a bounce option to allow the animation to be played in reverse once it gets to the end of the sequence.
Animations can now be joined forming a linked list, which can be played out over multiple ports, the original KnightRider effect which was previously only on Port C, now starts on Port B, then Port C, then Port D, then bounces back through D, C, B and continues in a loop.
Fixed a couple of errors which I found when changing the flags, removing loop, bounce and default direction. Now all fixed.
Improved fader, noticied flicker during day time which wasn't obvious when working in the evening. Changed starting off cycle period from 100 to 60, seems much better, cannot notice flicker.
Added support for P18F4550 as well as P18F45K22.
Modified to use Ports C & D, freeing up Port B for LCD which now displays application title and version number.
Cleaned up source, changed optimization setting and re-compiled.
Added POT so speed can be adjusted.