I was wondering how to controll 3 switches with one PWM pin,
what i had in mind was : hooking up the analog pin from the ATtiny to the Digital PWM pin from the arduino, and have a code like this:
if I send ...say 100 to the PWM pin , and i receive that value at the Attiny's analog pin and have it to do this :
If (analogRead == 100){
digitalWrite (Pin6 *from the Attiny* , HIGH)
}
then i send a 150 from the arduino and have it turn the other switch on , and in theory i should be able to control a few buttons with a single PWM pin from the arduino , is that really possible?
Thanks