Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

9 роки тому
8 роки тому
9 роки тому
9 роки тому
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392
  1. # language keywords - Arduino doesn't define these, but probably should
  2. volatile LITERAL2
  3. # teensy specific functions
  4. elapsedMillis LITERAL2
  5. elapsedMicros LITERAL2
  6. readString KEYWORD2
  7. readStringUntil KEYWORD2
  8. analogReadRes KEYWORD2
  9. analogReadResolution KEYWORD2
  10. analogReadAveraging KEYWORD2
  11. analogWriteRes KEYWORD2
  12. analogWriteResolution KEYWORD2
  13. analogWriteFrequency KEYWORD2
  14. touchRead KEYWORD2
  15. Teensy3Clock KEYWORD2
  16. IntervalTimer KEYWORD2
  17. printf KEYWORD2
  18. digitalWriteFast KEYWORD2
  19. digitalReadFast KEYWORD2
  20. transmitterEnable KEYWORD2
  21. attachRts KEYWORD2
  22. attachCts KEYWORD2
  23. PROGMEM LITERAL2
  24. DMAMEM LITERAL2
  25. FASTRUN LITERAL2
  26. # removed by Arduino 1.0, but still in Teensyduino
  27. BYTE LITERAL2
  28. # Arduino constants
  29. A0 LITERAL1
  30. A1 LITERAL1
  31. A2 LITERAL1
  32. A3 LITERAL1
  33. A4 LITERAL1
  34. A5 LITERAL1
  35. A6 LITERAL1
  36. A7 LITERAL1
  37. A8 LITERAL1
  38. A9 LITERAL1
  39. A10 LITERAL1
  40. A11 LITERAL1
  41. A12 LITERAL1
  42. A13 LITERAL1
  43. A14 LITERAL1
  44. A15 LITERAL1
  45. A16 LITERAL1
  46. A17 LITERAL1
  47. A18 LITERAL1
  48. A19 LITERAL1
  49. A20 LITERAL1
  50. A21 LITERAL1
  51. A22 LITERAL1
  52. SS LITERAL1
  53. MOSI LITERAL1
  54. MISO LITERAL1
  55. SCK LITERAL1
  56. SDA LITERAL1
  57. SCL LITERAL1
  58. NUM_DIGITAL_PINS LITERAL1
  59. NUM_ANALOG_INPUTS LITERAL1
  60. analogInputToDigitalPin KEYWORD2
  61. digitalPinHasPWM KEYWORD2
  62. NOT_AN_INTERRUPT LITERAL1
  63. digitalPinToInterrupt KEYWORD2
  64. # Teensy 3.x advanced pin states
  65. OUTPUT_OPENDRAIN LITERAL1
  66. INPUT_PULLUP LITERAL1
  67. INPUT_PULLDOWN LITERAL1
  68. # String functions
  69. copy KEYWORD2
  70. append KEYWORD2
  71. # Teensy 2.0 pin names
  72. PIN_A0 LITERAL1
  73. PIN_A1 LITERAL1
  74. PIN_A2 LITERAL1
  75. PIN_A3 LITERAL1
  76. PIN_A4 LITERAL1
  77. PIN_A5 LITERAL1
  78. PIN_A6 LITERAL1
  79. PIN_A7 LITERAL1
  80. PIN_B0 LITERAL1
  81. PIN_B1 LITERAL1
  82. PIN_B2 LITERAL1
  83. PIN_B3 LITERAL1
  84. PIN_B4 LITERAL1
  85. PIN_B5 LITERAL1
  86. PIN_B6 LITERAL1
  87. PIN_B7 LITERAL1
  88. PIN_C0 LITERAL1
  89. PIN_C1 LITERAL1
  90. PIN_C2 LITERAL1
  91. PIN_C3 LITERAL1
  92. PIN_C4 LITERAL1
  93. PIN_C5 LITERAL1
  94. PIN_C6 LITERAL1
  95. PIN_C7 LITERAL1
  96. PIN_D0 LITERAL1
  97. PIN_D1 LITERAL1
  98. PIN_D2 LITERAL1
  99. PIN_D3 LITERAL1
  100. PIN_D4 LITERAL1
  101. PIN_D5 LITERAL1
  102. PIN_D6 LITERAL1
  103. PIN_D7 LITERAL1
  104. PIN_E0 LITERAL1
  105. PIN_E1 LITERAL1
  106. PIN_E2 LITERAL1
  107. PIN_E3 LITERAL1
  108. PIN_E4 LITERAL1
  109. PIN_E5 LITERAL1
  110. PIN_E6 LITERAL1
  111. PIN_E7 LITERAL1
  112. PIN_F0 LITERAL1
  113. PIN_F1 LITERAL1
  114. PIN_F2 LITERAL1
  115. PIN_F3 LITERAL1
  116. PIN_F4 LITERAL1
  117. PIN_F5 LITERAL1
  118. PIN_F6 LITERAL1
  119. PIN_F7 LITERAL1
  120. PIN_SS LITERAL1
  121. PIN_SCLK LITERAL1
  122. PIN_MOSI LITERAL1
  123. PIN_MISO LITERAL1
  124. PIN_LED LITERAL1
  125. ANALOG_0 LITERAL1 AnalogRead
  126. ANALOG_1 LITERAL1 AnalogRead
  127. ANALOG_2 LITERAL1 AnalogRead
  128. ANALOG_3 LITERAL1 AnalogRead
  129. ANALOG_4 LITERAL1 AnalogRead
  130. ANALOG_5 LITERAL1 AnalogRead
  131. ANALOG_6 LITERAL1 AnalogRead
  132. ANALOG_7 LITERAL1 AnalogRead
  133. ANALOG_1_TO_0_X10 LITERAL1 AnalogRead
  134. ANALOG_1_TO_0_X200 LITERAL1 AnalogRead
  135. ANALOG_3_TO_2_X10 LITERAL1 AnalogRead
  136. ANALOG_3_TO_2_X200 LITERAL1 AnalogRead
  137. ANALOG_0_TO_1 LITERAL1 AnalogRead
  138. ANALOG_2_TO_1 LITERAL1 AnalogRead
  139. ANALOG_3_TO_1 LITERAL1 AnalogRead
  140. ANALOG_4_TO_1 LITERAL1 AnalogRead
  141. ANALOG_5_TO_1 LITERAL1 AnalogRead
  142. ANALOG_6_TO_1 LITERAL1 AnalogRead
  143. ANALOG_7_TO_1 LITERAL1 AnalogRead
  144. ANALOG_0_TO_2 LITERAL1 AnalogRead
  145. ANALOG_1_TO_2 LITERAL1 AnalogRead
  146. ANALOG_3_TO_2 LITERAL1 AnalogRead
  147. ANALOG_4_TO_2 LITERAL1 AnalogRead
  148. ANALOG_5_TO_2 LITERAL1 AnalogRead
  149. ANALOG_1_1V LITERAL1 AnalogRead
  150. ANALOG_0V LITERAL1 AnalogRead
  151. # USB Serial
  152. send_now KEYWORD2
  153. baud KEYWORD2
  154. stopbits KEYWORD2
  155. paritytype KEYWORD2
  156. numbits KEYWORD2
  157. dtr KEYWORD2
  158. rts KEYWORD2
  159. # USB Keyboard
  160. write_unicode KEYWORD2
  161. set_modifier KEYWORD2
  162. set_key1 KEYWORD2
  163. set_key2 KEYWORD2
  164. set_key3 KEYWORD2
  165. set_key4 KEYWORD2
  166. set_key5 KEYWORD2
  167. set_key6 KEYWORD2
  168. set_media KEYWORD2
  169. MODIFIERKEY_CTRL LITERAL1
  170. MODIFIERKEY_SHIFT LITERAL1
  171. MODIFIERKEY_ALT LITERAL1
  172. MODIFIERKEY_GUI LITERAL1
  173. MODIFIERKEY_LEFT_CTRL LITERAL1
  174. MODIFIERKEY_LEFT_SHIFT LITERAL1
  175. MODIFIERKEY_LEFT_ALT LITERAL1
  176. MODIFIERKEY_LEFT_GUI LITERAL1
  177. MODIFIERKEY_RIGHT_CTRL LITERAL1
  178. MODIFIERKEY_RIGHT_SHIFT LITERAL1
  179. MODIFIERKEY_RIGHT_ALT LITERAL1
  180. MODIFIERKEY_RIGHT_GUI LITERAL1
  181. KEY_MEDIA_VOLUME_INC LITERAL1
  182. KEY_MEDIA_VOLUME_DEC LITERAL1
  183. KEY_MEDIA_MUTE LITERAL1
  184. KEY_MEDIA_PLAY_PAUSE LITERAL1
  185. KEY_MEDIA_NEXT_TRACK LITERAL1
  186. KEY_MEDIA_PREV_TRACK LITERAL1
  187. KEY_MEDIA_STOP LITERAL1
  188. KEY_MEDIA_EJECT LITERAL1
  189. KEY_A LITERAL1
  190. KEY_B LITERAL1
  191. KEY_C LITERAL1
  192. KEY_D LITERAL1
  193. KEY_E LITERAL1
  194. KEY_F LITERAL1
  195. KEY_G LITERAL1
  196. KEY_H LITERAL1
  197. KEY_I LITERAL1
  198. KEY_J LITERAL1
  199. KEY_K LITERAL1
  200. KEY_L LITERAL1
  201. KEY_M LITERAL1
  202. KEY_N LITERAL1
  203. KEY_O LITERAL1
  204. KEY_P LITERAL1
  205. KEY_Q LITERAL1
  206. KEY_R LITERAL1
  207. KEY_S LITERAL1
  208. KEY_T LITERAL1
  209. KEY_U LITERAL1
  210. KEY_V LITERAL1
  211. KEY_W LITERAL1
  212. KEY_X LITERAL1
  213. KEY_Y LITERAL1
  214. KEY_Z LITERAL1
  215. KEY_1 LITERAL1
  216. KEY_2 LITERAL1
  217. KEY_3 LITERAL1
  218. KEY_4 LITERAL1
  219. KEY_5 LITERAL1
  220. KEY_6 LITERAL1
  221. KEY_7 LITERAL1
  222. KEY_8 LITERAL1
  223. KEY_9 LITERAL1
  224. KEY_0 LITERAL1
  225. KEY_ENTER LITERAL1
  226. KEY_ESC LITERAL1
  227. KEY_BACKSPACE LITERAL1
  228. KEY_TAB LITERAL1
  229. KEY_SPACE LITERAL1
  230. KEY_MINUS LITERAL1
  231. KEY_EQUAL LITERAL1
  232. KEY_LEFT_BRACE LITERAL1
  233. KEY_RIGHT_BRACE LITERAL1
  234. KEY_BACKSLASH LITERAL1
  235. KEY_NON_US_NUM LITERAL1
  236. KEY_SEMICOLON LITERAL1
  237. KEY_QUOTE LITERAL1
  238. KEY_TILDE LITERAL1
  239. KEY_COMMA LITERAL1
  240. KEY_PERIOD LITERAL1
  241. KEY_SLASH LITERAL1
  242. KEY_CAPS_LOCK LITERAL1
  243. KEY_F1 LITERAL1
  244. KEY_F2 LITERAL1
  245. KEY_F3 LITERAL1
  246. KEY_F4 LITERAL1
  247. KEY_F5 LITERAL1
  248. KEY_F6 LITERAL1
  249. KEY_F7 LITERAL1
  250. KEY_F8 LITERAL1
  251. KEY_F9 LITERAL1
  252. KEY_F10 LITERAL1
  253. KEY_F11 LITERAL1
  254. KEY_F12 LITERAL1
  255. KEY_PRINTSCREEN LITERAL1
  256. KEY_SCROLL_LOCK LITERAL1
  257. KEY_PAUSE LITERAL1
  258. KEY_INSERT LITERAL1
  259. KEY_HOME LITERAL1
  260. KEY_PAGE_UP LITERAL1
  261. KEY_DELETE LITERAL1
  262. KEY_END LITERAL1
  263. KEY_PAGE_DOWN LITERAL1
  264. KEY_RIGHT LITERAL1
  265. KEY_LEFT LITERAL1
  266. KEY_DOWN LITERAL1
  267. KEY_UP LITERAL1
  268. KEY_NUM_LOCK LITERAL1
  269. KEYPAD_SLASH LITERAL1
  270. KEYPAD_ASTERIX LITERAL1
  271. KEYPAD_MINUS LITERAL1
  272. KEYPAD_PLUS LITERAL1
  273. KEYPAD_ENTER LITERAL1
  274. KEYPAD_1 LITERAL1
  275. KEYPAD_2 LITERAL1
  276. KEYPAD_3 LITERAL1
  277. KEYPAD_4 LITERAL1
  278. KEYPAD_5 LITERAL1
  279. KEYPAD_6 LITERAL1
  280. KEYPAD_7 LITERAL1
  281. KEYPAD_8 LITERAL1
  282. KEYPAD_9 LITERAL1
  283. KEYPAD_0 LITERAL1
  284. KEYPAD_PERIOD LITERAL1
  285. KEY_UP_ARROW LITERAL1
  286. KEY_DOWN_ARROW LITERAL1
  287. KEY_LEFT_ARROW LITERAL1
  288. KEY_RIGHT_ARROW LITERAL1
  289. KEY_RETURN LITERAL1
  290. KEY_LEFT_CTRL LITERAL1
  291. KEY_LEFT_SHIFT LITERAL1
  292. KEY_LEFT_ALT LITERAL1
  293. KEY_LEFT_GUI LITERAL1
  294. KEY_RIGHT_CTRL LITERAL1
  295. KEY_RIGHT_SHIFT LITERAL1
  296. KEY_RIGHT_ALT LITERAL1
  297. KEY_RIGHT_GUI LITERAL1
  298. # USB Mouse
  299. moveTo KEYWORD2
  300. screenSize KEYWORD2
  301. scroll KEYWORD2
  302. set_buttons KEYWORD2
  303. isPressed KEYWORD2
  304. MOUSE_LEFT LITERAL1
  305. MOUSE_MIDDLE LITERAL1
  306. MOUSE_RIGHT LITERAL1
  307. MOUSE_ALL LITERAL1
  308. MOUSE_BACK LITERAL1
  309. MOUSE_FORWARD LITERAL1
  310. # USB Joystick
  311. Joystick KEYWORD1
  312. button KEYWORD2
  313. X KEYWORD2
  314. Y KEYWORD2
  315. position KEYWORD2
  316. Z KEYWORD2
  317. Xrotate KEYWORD2
  318. Yrotate KEYWORD2
  319. Zrotate KEYWORD2
  320. sliderLeft KEYWORD2
  321. sliderRight KEYWORD2
  322. slider KEYWORD2
  323. hat KEYWORD2
  324. useManualSend KEYWORD2
  325. # USB Disk
  326. Disk KEYWORD1
  327. claim KEYWORD2
  328. readSector KEYWORD2
  329. writeSector KEYWORD2
  330. releaseReadOnly KEYWORD2
  331. # USB MIDI
  332. usbMIDI KEYWORD1
  333. sendNoteOff KEYWORD2
  334. sendNoteOn KEYWORD2
  335. sendPolyPressure KEYWORD2
  336. sendControlChange KEYWORD2
  337. sendProgramChange KEYWORD2
  338. sendAfterTouch KEYWORD2
  339. sendPitchBend KEYWORD2
  340. sendSysEx KEYWORD2
  341. analog2velocity KEYWORD2
  342. getType KEYWORD2
  343. getChannel KEYWORD2
  344. getData1 KEYWORD2
  345. getData2 KEYWORD2
  346. getSysExArray KEYWORD2
  347. setHandleNoteOff KEYWORD2
  348. setHandleNoteOn KEYWORD2
  349. setHandleVelocityChange KEYWORD2
  350. setHandleControlChange KEYWORD2
  351. setHandleProgramChange KEYWORD2
  352. setHandleAfterTouch KEYWORD2
  353. setHandlePitchChange KEYWORD2
  354. setHandlePitchChange KEYWORD2
  355. NoteOff LITERAL1
  356. NoteOn LITERAL1
  357. AfterTouchPoly LITERAL1
  358. ControlChange LITERAL1
  359. ProgramChange LITERAL1
  360. AfterTouchChannel LITERAL1
  361. PitchBend LITERAL1
  362. SystemExclusive LITERAL1
  363. # USB RawHID
  364. RawHID KEYWORD1
  365. recv KEYWORD2
  366. send KEYWORD2
  367. # USB Flight Sim Controls
  368. FlightSim KEYWORD1
  369. FlightSimCommand KEYWORD2
  370. FlightSimInteger KEYWORD2
  371. FlightSimFloat KEYWORD2
  372. FlightSimElapsedFrames KEYWORD2
  373. onChange KEYWORD2
  374. update KEYWORD2
  375. isEnabled KEYWORD2
  376. getFrameCount KEYWORD2
  377. XPlaneRef KEYWORD2