Ok really annoying problem that i cant get my head around, i have tryed all day and i am begining to consider smashing the PCB in frustration.
So the idea is a serial signal is sent to the three picaxes saying the name of the trio (in my case: 1), if the picaxes hear there "name" they listen out for a colour (red, green or blue) this is the name of each of the 3 chips. if it is that particular chip that is addressed it listens for a number on the same pin as the previous signals; this number is the duty of a pmwout command-10000 . picaxe then outputs pmw to leds and creates different brightneses.
Trouble is that the lights come on for a few seconds and then die every time they receive this data stream when they are surpossed to stay on the whole time.
For 08M:
I've tryed hundreds of variations but am now at the edge (and its crumbling), so if anyone can suggest anything I would deeply appreciate it.
Jamster
So the idea is a serial signal is sent to the three picaxes saying the name of the trio (in my case: 1), if the picaxes hear there "name" they listen out for a colour (red, green or blue) this is the name of each of the 3 chips. if it is that particular chip that is addressed it listens for a number on the same pin as the previous signals; this number is the duty of a pmwout command-10000 . picaxe then outputs pmw to leds and creates different brightneses.
Trouble is that the lights come on for a few seconds and then die every time they receive this data stream when they are surpossed to stay on the whole time.
For 08M:
Code:
init: pause 1000
Symbol name=b0
Symbol anologue=w2
name=1
anologue=0
main: serin 4,N2400,(name)
serin 4,N2400,("blue") 'Permitted values at string: red,blue,green
serin 4,N2400,anologue
let anologue=anologue-10000 '/change brightness
pwmout pwmdiv4, 2, 210, anologue '\
goto main
Jamster