Gast
#4068612
Hallo, ich möchte mit einem ATTINY13 und Bascom eine RGB- Led steuern. Nun hat der Tiny13 aber nur 2 "Kanäle". Kann man den 3. Kanal per Software erzeugen? Bei einer PWM sind die LEDs doch immer nur kurz eingeschaltet und erscheinen dem Auge dadurch als dunkler. Mein Prog: $regfile = "attiny13.dat" $crystal = 1200000 Config Portb.0 = Output 'Pin5 PWM0a Config Portb.1 = Output 'Pin6 PWM0b Config Timer0 = Pwm , Prescale = 1 , Compare A Pwm = Clear Down , Compare B Pwm = Clear Down Dim A As Byte Dim X As Byte Do Pwm0a = M Pwm0b = N M = A - 1 N = X + 1 Waitms 10 Loop End Wie könnte ich es machen? VLG Moritz