   @loadNpmTasks 'grunt-noflo-lint'
 
   # Our local tasks
-  @registerTask 'build-microflo', [
+  @registerTask 'build-microflo-linux', [
     'exec:tablelights_linux_gen', 'exec:tablelights_linux_comp',
     'exec:portallights_linux_gen', 'exec:portallights_linux_comp',
+  ]
+  @registerTask 'build-microflo-arduino', [
+    'exec:portallights_arduino_gen', 'exec:portallights_arduino_build',
   ]
   @registerTask 'run-microflo-linux', [
     'exec:kill_microflo_linux'
     'exec:tablelights_run'
     'exec:portallights_run'
   ]
-  @registerTask 'build', ['build-microflo']
+  @registerTask 'build', ['build-microflo-linux']
   @registerTask 'test', ['coffeelint', 'build', 'run-microflo-linux', 'mochaTest']
+
   @registerTask 'default', ['test']

  MICROFLO_SOURCE_DIR=#{process.cwd()}/node_modules/microflo/microflo \
  MICROFLO=./node_modules/.bin/microflo
  BUILD_DIR=#{process.cwd()}/build"

microflo_gen = (name, options={}) ->
  defaults =

            'graphs/main.json'
          ]

    # "$(node build.js build/arduino/PortalLights/PortalLights.cpp)"

    exec:
      build_tiva: "#{microflo_make} STELLARIS_GRAPH=graphs/TableLights.fbp build-stellaris"
      tablelights_linux_gen: microflo_gen 'TableLights' 
      tablelights_linux_comp: microflo_compile 'TableLights'
      tablelights_run: './spec/microflo-linux.sh TableLights 4444 & sleep 5'
      portallights_arduino_gen: microflo_gen 'PortalLights', { target: 'arduino' }
      portallights_arduino_build: arduino_build 'PortalLights', { board: 'arduino:avr:leonardo' }
      portallights_linux_gen: microflo_gen 'PortalLights' 
      portallights_linux_comp: microflo_compile 'PortalLights'
      portallights_run: './spec/microflo-linux.sh PortalLights 5555 & sleep 5'
