Thanks so much for the ideas! Stellar!
I've redefined my end project to be:
- a unit that can receive bytes 0-100
- each byte to control a unique set pattern of digital out puts(say..6 leds on, 3 off, 1 relay on, 2 relays off) ]
- patterns to be programed by end user be stored in eeprom, and recalled when same byte is sent
Using the input byte and pulling out the the bits for a 8x control is awesome, thanks! However, I think I'd like to go full monty and not be limited by 8.
So, here is the end unit in a few sentences:
Normal mode: Mcu receives byte 0-99(or whatever) and recalls memory for which leds or relays were previously user programmed.
Write mode: Mcu recieves byte 0-99. User picks which leds and or relays he/she wants on off(mom buttons etc.), user pushes a "store/program" button, sends that to memory.
Essentially this creates "patches" stored in memory that can be recalled.
Want that model train drawbridge to go up and that xmas tree to start spinning? Send Patch number 15, which is a preset byte. You previously stored the drawbridge to go up and tree spin in write mode.
Any more input would be great! I cant wait to get into it!
Thanks again. Karma to you all!