 
           (resource/stop-night current-night)))))
 
+; Start in a thread so that I can use REPL too
 (defn -main []
-  (-> (Thread. main-function) .start))
-  
+  (-> (Thread. main-function) .start)
+  (iolist/init-io))

  )

(defn- init-state []
   (log/info "first day"))

(def DAY_CHECK_TIME_MILLIS 1000)

(defn main-function []
    (bios/init-bios)

    (if load-state?
      (load-state)

; along with this program.  If not, see <http://www.gnu.org/licenses/>.

(ns iyye.core
  (:require [iyye.iolist :as iolist]
            [iyye.resource :as resource]
            [clojure.tools.logging :as log]))

(def load-state? false)

