Thanks I've commented the Picbasic fuses in the include...
Fuses is ok but on compiling this code:
i receive many errors :Code:ASM CONFIG FOSC=HS ; Use HS oscillator (20MHZ here) CONFIG BOR=OFF ; Brown out reset ON CONFIG WDT=ON ; Watch dog timer ON CONFIG LVP=OFF ; Low Voltage programming OFF CONFIG DEBUG=OFF ; Background debugger OFF ENDASM led VAR PORTB.5 steps VAR WORD cycles CON 2 ' Change limits for steps to play around 0 or 100% brightness ' Change steps for different duration of ramps ' Works good even with high brightness LEDs, harder to control linearly fade: up: For steps=0 TO 255 PWM led,steps,cycles Next High led Pause 2500 down: For steps=255 TO 1 STEP -1 PWM led,steps,cycles Next Low led Pause 2500 GoTo fade End
maybe it's the code that is faulty or it's something else ?
Could you show me a code that will ABSOLUTELY compile (and tested to work), ex: blink a led so i can start to debug the previous code , to see if its my compile that freaks out or it just a simple issue....
Many thanks!
Have a nice week!
Best Regards,
Laurent





Bookmarks