I've also done this in place of the infinite call :
(while true (Thread/sleep (* 10 1000)))
In this case, it sits there, as it should, but I'm not seeing the events
kick off still.
This is more along the lines of the "for (;;) { Thread.sleep(500)} java
code. Should this have still technicall
Can you fix the two issues I've pointed out and post the code somewhere
with highlighting (a gist maybe)?
Maybe I can't see the real issue and someone else more experienced than me
can provide the answer. They may not bother reading it if it's not properly
formatted and highlighted.
On Fri, Jun
Hi Atamert, Thanks for your response.
I get the "looping" message and then it just sits there. This is what I
see in my console:
pi@raspberrypi /opt/pi4j/examples $ runclojure clojure/examples.clj
Start running blinkio
hello
looping
Then it just sits there. After a certain amount of tim
Hi Andre,
When I tried to run your code, it didn't compile for me:
user=> (defn infinite[f seconds](future (loop [] (f)
(Thread/sleep (* seconds 1000)) (recur
#'user/infinite
user=> (infinite (printf "\nlooping") 10)
looping
NullPointerException user/infinite/fn--2267 (NO
Hi everyone, I just started trying to play with a raspberry pi for a
variety of reasons, and given that java runs on it, I decided to use this
as an opportunity to learn clojure. I'm playing with a blinkIo example
which looks like this:
public class BlinkGpioExample {
public static void ma