Permalink
Browse files

Added Arduino project template

  • Loading branch information...
1 parent ac5d6ca commit 941bb74c6c367045f6a2b79cb6250d723a931f98 @d2kagw d2kagw committed Jan 3, 2011
Showing with 30 additions and 0 deletions.
  1. +19 −0 Templates/Arduino.tmTemplate/info.plist
  2. +11 −0 Templates/Arduino.tmTemplate/sketch.pde
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>command</key>
+ <string>if [[ ! -f "$TM_NEW_FILE" ]]; then
+ TM_YEAR=`date +%Y` \
+ TM_DATE=`date +%Y-%m-%d` \
+ perl -pe 's/\$\{([^}]*)\}/$ENV{$1}/g' \
+ &lt; sketch.pde &gt; "$TM_NEW_FILE"
+fi</string>
+ <key>extension</key>
+ <string>pde</string>
+ <key>name</key>
+ <string>Arduino</string>
+ <key>uuid</key>
+ <string>1E20D9D4-3FD4-457E-8FD6-808A7CEF04D1</string>
+</dict>
+</plist>
@@ -0,0 +1,11 @@
+/*
+ ${TM_NEW_FILE_BASENAME}
+ Created ${TM_DATE} by ${TM_FULLNAME}
+*/
+
+void setup () {
+ Serial.begin(9600);
+};
+
+void loop() {
+};

0 comments on commit 941bb74

Please sign in to comment.