Repository URL to install this package:
|
Version:
2.13.0 ▾
|
'/*\n Blink\n Turns on an LED on for one second, then off for one second, repeatedly.\n \n This example code is in the public domain.\n */' Comment.Multiline
'\n' Text.Whitespace
' ' Text.Whitespace
'\n' Text.Whitespace
'// Pin 13 has an LED connected on most Arduino boards.\n' Comment.Single
'// give it a name:\n' Comment.Single
'int' Keyword.Reserved
' ' Text.Whitespace
'led' Name
' ' Text.Whitespace
'=' Operator
' ' Text.Whitespace
'13' Literal.Number.Integer
';' Punctuation
'\n' Text.Whitespace
'\n' Text.Whitespace
'// the setup routine runs once when you press reset:\n' Comment.Single
'void' Keyword.Reserved
' ' Text.Whitespace
'setup' Name.Builtin
'(' Punctuation
')' Punctuation
' ' Text.Whitespace
'{' Punctuation
'\n' Text.Whitespace
' ' Text.Whitespace
'// initialize the digital pin as an output.\n' Comment.Single
' ' Text.Whitespace
'pinMode' Name.Function
'(' Punctuation
'led' Name
',' Punctuation
' ' Text.Whitespace
'OUTPUT' Keyword.Reserved
')' Punctuation
';' Punctuation
' ' Text.Whitespace
'\n' Text.Whitespace
'}' Punctuation
'\n' Text.Whitespace
'\n' Text.Whitespace
'// the loop routine runs over and over again forever:\n' Comment.Single
'void' Keyword.Reserved
' ' Text.Whitespace
'loop' Name.Builtin
'(' Punctuation
')' Punctuation
' ' Text.Whitespace
'{' Punctuation
'\n' Text.Whitespace
' ' Text.Whitespace
'digitalWrite' Name.Function
'(' Punctuation
'led' Name
',' Punctuation
' ' Text.Whitespace
'HIGH' Keyword.Reserved
')' Punctuation
';' Punctuation
' ' Text.Whitespace
'// turn the LED on (HIGH is the voltage level)\n' Comment.Single
' ' Text.Whitespace
'delay' Name.Function
'(' Punctuation
'1000' Literal.Number.Integer
')' Punctuation
';' Punctuation
' ' Text.Whitespace
'// wait for a second\n' Comment.Single
' ' Text.Whitespace
'digitalWrite' Name.Function
'(' Punctuation
'led' Name
',' Punctuation
' ' Text.Whitespace
'LOW' Keyword.Reserved
')' Punctuation
';' Punctuation
' ' Text.Whitespace
'// turn the LED off by making the voltage LOW\n' Comment.Single
' ' Text.Whitespace
'delay' Name.Function
'(' Punctuation
'1000' Literal.Number.Integer
')' Punctuation
';' Punctuation
' ' Text.Whitespace
'// wait for a second\n' Comment.Single
'}' Punctuation
'\n' Text.Whitespace