Re: Why won't the LED flash?

2015-12-21 Thread Raman Gopalan
Dear Josh, greetings! Sorry for the slight delay in response. And great that you figured out your problem. Sorry, I missed the prog; And thanks for updating the wiki. I just saw the update. I checked your problem another way without prog. So, I made sure blinky was working. I then modified blinky

Re: Why won't the LED flash?

2015-12-21 Thread andreas
won't the LED flash? Okay so I feel like an idiot for not figuring this out earlier, but I'll put it down to not writing picolisp before. Anyways, I figured out what is wrong, sbcl if statement works like so: (if test-form then-form else-form) And the Picolisp works the same, and the e

Re: Why won't the LED flash?

2015-12-20 Thread Josh
Okay so I feel like an idiot for not figuring this out earlier, but I'll put it down to not writing picolisp before. Anyways, I figured out what is wrong, sbcl if statement works like so: (if test-form then-form else-form) And the Picolisp works the same, and the easiest way to do multiple t

Re: Why won't the LED flash?

2015-12-20 Thread J B
No circuit just the plain old Mizar B. The Example from the hempl wiki book is flashing PB_29. I'm Ubuntu to connect with terminal. Sent from my iPhone > On Dec 20, 2015, at 12:12 PM, pd wrote: > > sorry if you already said this but what platform are you using? also a > schematic of your cir

Re: Why won't the LED flash?

2015-12-20 Thread pd
sorry if you already said this but what platform are you using? also a schematic of your circuit would be interesting even being so simple On Sun, Dec 20, 2015 at 3:18 AM, Josh wrote: > Thought it might be a firmware problem or something, so I just re-flashed > the firmware but it's still happen

Re: Why won't the LED flash?

2015-12-19 Thread Josh
Thought it might be a firmware problem or something, so I just re-flashed the firmware but it's still happening, just eliminating possibilities. Also the second of my last emails was the correct one, I canceled the previous but it sent anyways. Thanks. On 19/12/15 12:50, Josh wrote: I have put

Re: Why won't the LED flash?

2015-12-19 Thread Josh
I have put the main code onto the sd card and I use the shell to call the function prog-loop. The light just stays on. I've had this problem before with the example blink program, if I change any of it to make it shorter by using shorter function names like (de low () (pio-pin-setlow 'PB_29)) i

Re: Why won't the LED flash?

2015-12-19 Thread Josh
I have put the main code onto the sd card and I use the shell to call the function prog-loop. The light just stays on. I've had this problem before with the example blink program, if I change any of it to make it shorter by using shorter function names like (setq low (pio-pin-setlow 'PB_29)) it

Re: Why won't the LED flash?

2015-12-18 Thread Raman Gopalan
Dear Josh, > But it doesn't blink, I adjusted the times to make them five times > higher and it just waits around 1 second and the LED turns on but You mean it just turns "on" and doesn't blink with the same example below? Adjusting the time is OK, but we're missing something else here. Are you t

Re: Why won't the LED flash?

2015-12-18 Thread Josh
Thanks for the reply, but that time is 1/5th of the time for the blinking LED example, and 1/5th a second is enough for an eye to see. Anyways, this little bit: > (pio-pin-setlow led) > (delay 10) > (pio-pin-sethigh led) > (delay 10) ) ) ) Is exactly t

Re: Why won't the LED flash?

2015-12-18 Thread Raman Gopalan
Dear Josh, greetings! Firstly, great to know you're playing with your board! Perfect! > Why does this small amount of code not make the onboard LED flash? I think you're not providing enough delay for you to see the off state of the LED. Why don't you try this? I've just inserted an additional d

Why won't the LED flash?

2015-12-18 Thread Josh
Why does this small amount of code not make the onboard LED flash? (pio-pin-setdir *pio-output* 'PB_29) (pio-pin-sethigh 'PB_29) (loop (pio-pin-setlow 'PB_29) (tmr-delay 0 10) (pio-pin-sethigh 'PB_29)) All that happens in the blue LED turns on and stays on, even though the c