This commit is contained in:
Gert 2015-05-18 16:44:24 +02:00
parent aa05eda641
commit 10f2e6ebcf

View File

@ -1,18 +1,18 @@
snippet setup snippet setup
void setup() void setup()
{ {
${0} ${0}
Serial.begin(9600); Serial.begin(9600);
} }
snippet loop snippet loop
void loop() void loop()
{ {
${0} ${0}
} }
snippet inc snippet inc
#include <${1}.h> #include <${1}.h>
# if # if
snippet if snippet if
@ -81,27 +81,27 @@ snippet fun
## IO ## IO
# pinMode OUTPUT # pinMode OUTPUT
snippet pinout snippet pinout
pinMode(${1}, OUTPUT); pinMode(${1}, OUTPUT);
# pinMode INPUT # pinMode INPUT
snippet pinin snippet pinin
pinMode(${1}, INPUT); pinMode(${1}, INPUT);
# digitalWrite HIGH # digitalWrite HIGH
snippet dwHigh snippet dwHigh
digitalWrite(${1}, HIGH); digitalWrite(${1}, HIGH);
# digitalWrite LOW # digitalWrite LOW
snippet dwLow snippet dwLow
digitalWrite(${1}, LOW); digitalWrite(${1}, LOW);
# digitalRead # digitalRead
snippet dr snippet dr
digitalRead(${1}); digitalRead(${1});
# serialRead # serialRead
snippet sr snippet sr
serialRead(); serialRead();
# serial.println # serial.println
snippet sp snippet sp
serial.println(${1}); serial.println(${1});
# delay # delay
snippet dl snippet dl
delay(${1}); delay(${1});