aboutsummaryrefslogtreecommitdiff
path: root/vim/bundle/vim-snippets/snippets/arduino.snippets
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2016-06-30 16:11:56 +0200
committerKarel Kočí <cynerd@email.cz>2016-06-30 16:11:56 +0200
commit9931e0888b2419326ae10ebbfae532261c5c125f (patch)
tree7504be5daccbb7b7d1ea396754de47b11ed790e5 /vim/bundle/vim-snippets/snippets/arduino.snippets
parente573b3020c032400eed60b649a2cbf55266e6bb0 (diff)
downloadmyconfigs-9931e0888b2419326ae10ebbfae532261c5c125f.tar.gz
myconfigs-9931e0888b2419326ae10ebbfae532261c5c125f.tar.bz2
myconfigs-9931e0888b2419326ae10ebbfae532261c5c125f.zip
Fix submodules
Diffstat (limited to 'vim/bundle/vim-snippets/snippets/arduino.snippets')
m---------vim/bundle/vim-snippets0
-rw-r--r--vim/bundle/vim-snippets/snippets/arduino.snippets106
2 files changed, 0 insertions, 106 deletions
diff --git a/vim/bundle/vim-snippets b/vim/bundle/vim-snippets
new file mode 160000
+Subproject 15d7e5ec26ec93adee4051b6359be90a943aa38
diff --git a/vim/bundle/vim-snippets/snippets/arduino.snippets b/vim/bundle/vim-snippets/snippets/arduino.snippets
deleted file mode 100644
index 77ee46f..0000000
--- a/vim/bundle/vim-snippets/snippets/arduino.snippets
+++ /dev/null
@@ -1,106 +0,0 @@
-snippet setup
- void setup()
- {
- ${0}
- Serial.begin(9600);
- }
-
-snippet loop
- void loop()
- {
- ${0}
- }
-
-snippet inc
- #include <${1}.h>
-
-# if
-snippet if
- if (${1:/* condition */}) {
- ${2}
- }
-# else
-snippet el
- else {
- ${1}
- }
-# else if
-snippet elif
- else if (${1:/* condition */}) {
- ${2}
- }
-# ifi
-snippet ifi
- if (${1:/* condition */}) ${2};
-
-# switch
-snippet switch
- switch (${1:/* variable */}) {
- case ${2:/* variable case */}:
- ${3}
- ${4:break;}${5}
- default:
- ${6}
- }
-
-snippet case
- case ${1:/* variable case */}:
- ${2}
- ${3:break;}
-
-# for
-snippet for
- for (${2:i} = 0; $2 < ${1:count}; $2${3:++}) {
- ${4}
- }
-# for (custom)
-snippet forr
- for (${1:i} = ${2:0}; ${3:$1 < 10}; $1${4:++}) {
- ${5}
- }
-# while
-snippet wh
- while (${1:/* condition */}) {
- ${2}
- }
-# do... while
-snippet do
- do {
- ${2}
- } while (${1:/* condition */});
-##
-## Functions
-# function definition
-snippet fun
- ${1:void} ${2:function_name}(${3})
- {
- ${4}
- }
-
-## IO
-# pinMode OUTPUT
-snippet pinout
- pinMode(${1}, OUTPUT);
-# pinMode INPUT
-snippet pinin
- pinMode(${1}, INPUT);
-# digitalWrite HIGH
-snippet dwHigh
- digitalWrite(${1}, HIGH);
-# digitalWrite LOW
-snippet dwLow
- digitalWrite(${1}, LOW);
-# digitalRead
-snippet dr
- digitalRead(${1});
-# serialRead
-snippet sr
- serialRead();
-# serial.println
-snippet sp
- serial.println(${1});
-
-
-# delay
-snippet dl
- delay(${1});