November 22, 2011
First of all I'd like to start by saying I'm new to the robotic/electronic hobby. About a year ago i started by building fritsl's "Start Here" robot and had a ton of fun doing it. Thanks for the new hobby fritsl! I recently started thinking about what else I could do with my PICAXE-28 project board. I stumbled on a project using PWM to fade an LED. It looked cool so I thought I would give it a try just for the learning experience. Unfortunately I can’t get it to work. I'm obviously not doing something right but I'm not sure what.
I connected the LED to pin 1 (through a 330ohm resistor) and ground. My code is as follows:
for b1=0 to 255
for b1=255 to 0 step -1
This is probably a pretty stupid mistake I'm just not seeing it. Any Ideas?