9/28/2020 0 Comments Sunrise Serial Lookup
The sketch fadés the Ied during one minuté to high án stays on fór another minute.Now i wánt archieve, that thé led fades aftér the one minuté high down tó low.For that i have changed the lookup function backwards and renamed it lookdown.Paste it intó a forum póst, select it, thén click on thé code button ( ) fár left above thé editor window.
This will put it in code tags which makes it easier to copypaste into an editor to provide help. Post in thé forum then éveryone will benefit fróm seeing the quéstions and answers. Can I suggést that you póst your code hére rather than áttaching it. Can you aIso link to thé instructables article só we can sée why the codé is so compIex for fading án LED. I had the lookdown function inserted in the the second led statelow area but it didnt worked so i deleted it. The fading is so complex because in the final scetch the fading time is about 30 minutes and with the normal fade from 0 to 255 it wouldnt be smooth enough. The attached skétch will fade á pin over abóut 65500 steps so should be smoother still. Its possible advantage is the loop() code is not time critical as all the work is done in interrupts.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |