
Originally Posted by
syscoder
hi friends i search in the forum and found many examples thanks.
You also appear to have MANY POSTS.
Why post the same thing in three threads in the same forum ?????
I didnt read the whole of your code but just this bit is flawed.
So at this point you are reading a lighting level 00-FF (0-255) into a variable called "level1"
portC.1 = level1 'i want to dimm led on port c.1
Now you try to assign a byte size variable to a single BIT of an output port which can only ever be 0 or 1, OFF or ON.
It has been stated several times that you need to create a PWM signal to DIM your LEDs. You need to read up on how to do that. Plenty of examples all over the forum and the wider Internet.
Keith
www.diyha.co.uk
www.kat5.tv
Bookmarks