   (fn [board pin-n mode val] mode))
 
 
+;; Now let's hook these into the actual protocol implementations
+
 (defrecord RPiBoard
   [edge-channels config]
   pcp/PBoard


  pcp/PPinConfigure
  (set-mode! [board pin-n mode]
    (unset-mode* board pin-n)
    (set-mode* board pin-n mode))

  pcp/PReadablePin


(defmulti unset-mode*
  "Inner method for unsetting a pin mode, in particular for being run before moving to another mode or turned off"
  (fn [board pin-n mode] mode))

(defmulti set-mode*
  "Inner method for setting the mode of a pin on the board"
