2015-05-01 05:26:58 +00:00
|
|
|
#######################################
|
2018-03-07 22:39:06 +00:00
|
|
|
# Syntax Coloring Map For Arduboy2
|
2015-05-01 05:26:58 +00:00
|
|
|
#######################################
|
|
|
|
|
|
|
|
#######################################
|
|
|
|
# Datatypes (KEYWORD1)
|
|
|
|
#######################################
|
|
|
|
|
2016-06-15 20:18:06 +00:00
|
|
|
Arduboy2 KEYWORD1
|
|
|
|
Arduboy2Base KEYWORD1
|
2018-02-19 21:09:42 +00:00
|
|
|
BeepPin1 KEYWORD1
|
|
|
|
BeepPin2 KEYWORD1
|
2018-03-07 22:39:06 +00:00
|
|
|
Point KEYWORD1
|
|
|
|
Rect KEYWORD1
|
2016-10-20 17:28:29 +00:00
|
|
|
Sprites KEYWORD1
|
2018-03-14 14:24:53 +00:00
|
|
|
SpritesB KEYWORD1
|
2015-05-01 05:26:58 +00:00
|
|
|
|
|
|
|
#######################################
|
|
|
|
# Methods and Functions (KEYWORD2)
|
|
|
|
#######################################
|
|
|
|
|
|
|
|
allPixelsOn KEYWORD2
|
2020-06-20 23:44:10 +00:00
|
|
|
anyPressed KEYWORD2
|
2016-06-15 20:18:06 +00:00
|
|
|
begin KEYWORD2
|
2015-05-01 05:26:58 +00:00
|
|
|
blank KEYWORD2
|
2016-06-15 20:18:06 +00:00
|
|
|
boot KEYWORD2
|
|
|
|
bootLogo KEYWORD2
|
2017-04-12 21:36:28 +00:00
|
|
|
bootLogoCompressed KEYWORD2
|
2020-09-24 21:31:27 +00:00
|
|
|
bootLogoExtra KEYWORD2
|
2017-04-12 21:36:28 +00:00
|
|
|
bootLogoShell KEYWORD2
|
2018-03-14 14:24:53 +00:00
|
|
|
bootLogoSpritesBOverwrite KEYWORD2
|
|
|
|
bootLogoSpritesBSelfMasked KEYWORD2
|
2017-04-12 21:36:28 +00:00
|
|
|
bootLogoSpritesOverwrite KEYWORD2
|
|
|
|
bootLogoSpritesSelfMasked KEYWORD2
|
2017-03-27 19:58:17 +00:00
|
|
|
bootLogoText KEYWORD2
|
2016-03-03 05:11:47 +00:00
|
|
|
buttonsState KEYWORD2
|
2015-05-01 05:26:58 +00:00
|
|
|
clear KEYWORD2
|
2016-10-20 17:28:29 +00:00
|
|
|
collide KEYWORD2
|
2015-05-01 05:26:58 +00:00
|
|
|
cpuLoad KEYWORD2
|
2017-04-17 21:34:58 +00:00
|
|
|
delayShort KEYWORD2
|
2016-06-15 20:18:06 +00:00
|
|
|
digitalWriteRGB KEYWORD2
|
2015-05-01 05:26:58 +00:00
|
|
|
display KEYWORD2
|
2017-04-17 21:01:10 +00:00
|
|
|
displayOff KEYWORD2
|
|
|
|
displayOn KEYWORD2
|
2015-05-01 05:26:58 +00:00
|
|
|
drawBitmap KEYWORD2
|
|
|
|
drawChar KEYWORD2
|
|
|
|
drawCircle KEYWORD2
|
2016-12-13 16:54:25 +00:00
|
|
|
drawCompressed KEYWORD2
|
2015-05-01 05:26:58 +00:00
|
|
|
drawFastHLine KEYWORD2
|
|
|
|
drawFastVLine KEYWORD2
|
|
|
|
drawLine KEYWORD2
|
|
|
|
drawPixel KEYWORD2
|
|
|
|
drawRect KEYWORD2
|
|
|
|
drawRoundRect KEYWORD2
|
|
|
|
drawSlowXYBitmap KEYWORD2
|
|
|
|
drawTriangle KEYWORD2
|
2016-03-02 14:28:27 +00:00
|
|
|
enabled KEYWORD2
|
2015-05-01 05:26:58 +00:00
|
|
|
everyXFrames KEYWORD2
|
2018-03-07 21:23:47 +00:00
|
|
|
exitToBootloader KEYWORD2
|
2015-05-01 05:26:58 +00:00
|
|
|
fillCircle KEYWORD2
|
|
|
|
fillRect KEYWORD2
|
|
|
|
fillRoundRect KEYWORD2
|
|
|
|
fillScreen KEYWORD2
|
|
|
|
fillTriangle KEYWORD2
|
2016-06-15 20:18:06 +00:00
|
|
|
flashlight KEYWORD2
|
2015-05-01 05:26:58 +00:00
|
|
|
flipVertical KEYWORD2
|
|
|
|
flipHorizontal KEYWORD2
|
2018-02-22 19:36:55 +00:00
|
|
|
freeRGBled KEYWORD2
|
2018-04-23 19:44:15 +00:00
|
|
|
generateRandomSeed KEYWORD2
|
2015-05-01 05:26:58 +00:00
|
|
|
getBuffer KEYWORD2
|
Refactor text code and add char size functions
- Functions write() and drawChar() were refactored for smaller code
size and to make text wrapping operate more like what would normally
be expected.
- A new flag variable, textRaw, has been added, along with functions
setTextRawMode() and getTextRawMode() to set and read it.
When set, the write() function will render the value \n (0x0a) as
an "inverse white circle" instead of handling it as a newline and
render value \r (0x0d) as a "musical eighth note" instead of
ignoring it.
- Spacing added at the end of each character is no longer factored in
when determining if a character will fit on screen at the end of
a line.
- Checking if line wrap is neccessary is done before drawing a
character, instead of doing it after drawing to prepare for the
next character. This fixed a problem with requested line feeds
interacting with wrapping, resulting in unexpected blank lines.
- Fixed a bug that caused the drawing of characters with a transparent
background to not work properly. (This is selected by setting the
background color to be the same as the text color.)
- Added new functions getCharacterWidth() getCharacterHeight()
getCharacterSpacing() getLineSpacing() to programmatically get
the dimensions of a character, given the desired text size.
- Functions write() and drawChar() are now able to render a font of
any character size, and with any character and line spacing, by
setting variables characterWidth characterHeight characterSpacing
and lineSpacing, and providing a matching font array. This doesn't
affect their use with this library but has been done for the sake
of code portability.
2020-08-25 20:40:34 +00:00
|
|
|
getCharacterHeight KEYWORD2
|
|
|
|
getCharacterSpacing KEYWORD2
|
|
|
|
getCharacterWidth KEYWORD2
|
2016-06-15 20:18:06 +00:00
|
|
|
getCursorX KEYWORD2
|
|
|
|
getCursorY KEYWORD2
|
Refactor text code and add char size functions
- Functions write() and drawChar() were refactored for smaller code
size and to make text wrapping operate more like what would normally
be expected.
- A new flag variable, textRaw, has been added, along with functions
setTextRawMode() and getTextRawMode() to set and read it.
When set, the write() function will render the value \n (0x0a) as
an "inverse white circle" instead of handling it as a newline and
render value \r (0x0d) as a "musical eighth note" instead of
ignoring it.
- Spacing added at the end of each character is no longer factored in
when determining if a character will fit on screen at the end of
a line.
- Checking if line wrap is neccessary is done before drawing a
character, instead of doing it after drawing to prepare for the
next character. This fixed a problem with requested line feeds
interacting with wrapping, resulting in unexpected blank lines.
- Fixed a bug that caused the drawing of characters with a transparent
background to not work properly. (This is selected by setting the
background color to be the same as the text color.)
- Added new functions getCharacterWidth() getCharacterHeight()
getCharacterSpacing() getLineSpacing() to programmatically get
the dimensions of a character, given the desired text size.
- Functions write() and drawChar() are now able to render a font of
any character size, and with any character and line spacing, by
setting variables characterWidth characterHeight characterSpacing
and lineSpacing, and providing a matching font array. This doesn't
affect their use with this library but has been done for the sake
of code portability.
2020-08-25 20:40:34 +00:00
|
|
|
getLineSpacing KEYWORD2
|
2018-03-07 22:39:06 +00:00
|
|
|
getPixel KEYWORD2
|
2017-07-31 20:57:28 +00:00
|
|
|
getTextBackground KEYWORD2
|
|
|
|
getTextColor KEYWORD2
|
Refactor text code and add char size functions
- Functions write() and drawChar() were refactored for smaller code
size and to make text wrapping operate more like what would normally
be expected.
- A new flag variable, textRaw, has been added, along with functions
setTextRawMode() and getTextRawMode() to set and read it.
When set, the write() function will render the value \n (0x0a) as
an "inverse white circle" instead of handling it as a newline and
render value \r (0x0d) as a "musical eighth note" instead of
ignoring it.
- Spacing added at the end of each character is no longer factored in
when determining if a character will fit on screen at the end of
a line.
- Checking if line wrap is neccessary is done before drawing a
character, instead of doing it after drawing to prepare for the
next character. This fixed a problem with requested line feeds
interacting with wrapping, resulting in unexpected blank lines.
- Fixed a bug that caused the drawing of characters with a transparent
background to not work properly. (This is selected by setting the
background color to be the same as the text color.)
- Added new functions getCharacterWidth() getCharacterHeight()
getCharacterSpacing() getLineSpacing() to programmatically get
the dimensions of a character, given the desired text size.
- Functions write() and drawChar() are now able to render a font of
any character size, and with any character and line spacing, by
setting variables characterWidth characterHeight characterSpacing
and lineSpacing, and providing a matching font array. This doesn't
affect their use with this library but has been done for the sake
of code portability.
2020-08-25 20:40:34 +00:00
|
|
|
getTextRawMode KEYWORD2
|
2017-07-31 20:57:28 +00:00
|
|
|
getTextSize KEYWORD2
|
|
|
|
getTextWrap KEYWORD2
|
2016-06-15 20:18:06 +00:00
|
|
|
height KEYWORD2
|
2015-05-01 05:26:58 +00:00
|
|
|
idle KEYWORD2
|
|
|
|
initRandomSeed KEYWORD2
|
|
|
|
invert KEYWORD2
|
2016-10-20 17:28:29 +00:00
|
|
|
justPressed KEYWORD2
|
|
|
|
justReleased KEYWORD2
|
2015-05-01 05:26:58 +00:00
|
|
|
nextFrame KEYWORD2
|
2017-02-06 21:03:15 +00:00
|
|
|
nextFrameDEV KEYWORD2
|
2015-05-01 05:26:58 +00:00
|
|
|
notPressed KEYWORD2
|
2016-03-02 14:28:27 +00:00
|
|
|
off KEYWORD2
|
|
|
|
on KEYWORD2
|
2015-05-01 05:26:58 +00:00
|
|
|
paint8Pixels KEYWORD2
|
|
|
|
paintScreen KEYWORD2
|
2016-10-20 17:28:29 +00:00
|
|
|
pollButtons KEYWORD2
|
2015-05-01 05:26:58 +00:00
|
|
|
pressed KEYWORD2
|
2018-03-19 19:51:21 +00:00
|
|
|
readShowBootLogoFlag KEYWORD2
|
2018-04-06 16:51:52 +00:00
|
|
|
readShowBootLogoLEDsFlag KEYWORD2
|
2017-03-29 21:36:13 +00:00
|
|
|
readShowUnitNameFlag KEYWORD2
|
2017-02-06 18:34:46 +00:00
|
|
|
readUnitID KEYWORD2
|
|
|
|
readUnitName KEYWORD2
|
2017-03-24 19:53:35 +00:00
|
|
|
safeMode KEYWORD2
|
2016-03-02 14:28:27 +00:00
|
|
|
saveOnOff KEYWORD2
|
2015-05-01 05:26:58 +00:00
|
|
|
setCursor KEYWORD2
|
2020-06-20 23:44:10 +00:00
|
|
|
setCursorX KEYWORD2
|
|
|
|
setCursorY KEYWORD2
|
2018-02-09 23:18:19 +00:00
|
|
|
setFrameDuration KEYWORD2
|
2015-05-01 05:26:58 +00:00
|
|
|
setFrameRate KEYWORD2
|
2016-06-15 20:18:06 +00:00
|
|
|
setRGBled KEYWORD2
|
|
|
|
setTextBackground KEYWORD2
|
2017-07-31 20:57:28 +00:00
|
|
|
setTextColor KEYWORD2
|
Refactor text code and add char size functions
- Functions write() and drawChar() were refactored for smaller code
size and to make text wrapping operate more like what would normally
be expected.
- A new flag variable, textRaw, has been added, along with functions
setTextRawMode() and getTextRawMode() to set and read it.
When set, the write() function will render the value \n (0x0a) as
an "inverse white circle" instead of handling it as a newline and
render value \r (0x0d) as a "musical eighth note" instead of
ignoring it.
- Spacing added at the end of each character is no longer factored in
when determining if a character will fit on screen at the end of
a line.
- Checking if line wrap is neccessary is done before drawing a
character, instead of doing it after drawing to prepare for the
next character. This fixed a problem with requested line feeds
interacting with wrapping, resulting in unexpected blank lines.
- Fixed a bug that caused the drawing of characters with a transparent
background to not work properly. (This is selected by setting the
background color to be the same as the text color.)
- Added new functions getCharacterWidth() getCharacterHeight()
getCharacterSpacing() getLineSpacing() to programmatically get
the dimensions of a character, given the desired text size.
- Functions write() and drawChar() are now able to render a font of
any character size, and with any character and line spacing, by
setting variables characterWidth characterHeight characterSpacing
and lineSpacing, and providing a matching font array. This doesn't
affect their use with this library but has been done for the sake
of code portability.
2020-08-25 20:40:34 +00:00
|
|
|
setTextRawMode KEYWORD2
|
2015-05-01 05:26:58 +00:00
|
|
|
setTextSize KEYWORD2
|
|
|
|
setTextWrap KEYWORD2
|
2017-03-15 18:10:19 +00:00
|
|
|
SPItransfer KEYWORD2
|
2020-07-17 19:18:07 +00:00
|
|
|
SPItransferAndRead KEYWORD2
|
2016-06-15 20:18:06 +00:00
|
|
|
systemButtons KEYWORD2
|
2016-12-13 16:49:29 +00:00
|
|
|
toggle KEYWORD2
|
2018-02-19 22:01:32 +00:00
|
|
|
waitNoButtons KEYWORD2
|
2016-06-15 20:18:06 +00:00
|
|
|
width KEYWORD2
|
2018-03-19 19:51:21 +00:00
|
|
|
writeShowBootLogoFlag KEYWORD2
|
2018-04-06 16:51:52 +00:00
|
|
|
writeShowBootLogoLEDsFlag KEYWORD2
|
2017-03-29 21:36:13 +00:00
|
|
|
writeShowUnitNameFlag KEYWORD2
|
2017-02-06 18:34:46 +00:00
|
|
|
writeUnitID KEYWORD2
|
|
|
|
writeUnitName KEYWORD2
|
2015-05-01 05:26:58 +00:00
|
|
|
|
2018-02-19 21:09:42 +00:00
|
|
|
# Arduboy2Beep classes
|
|
|
|
freq KEYWORD2
|
|
|
|
noTone KEYWORD2
|
|
|
|
timer KEYWORD2
|
|
|
|
tone KEYWORD2
|
|
|
|
|
2016-10-20 17:28:29 +00:00
|
|
|
# Sprites class
|
|
|
|
drawErase KEYWORD2
|
|
|
|
drawExternalMask KEYWORD2
|
|
|
|
drawOverwrite KEYWORD2
|
|
|
|
drawPlusMask KEYWORD2
|
|
|
|
drawSelfMasked KEYWORD2
|
|
|
|
|
2020-09-27 19:19:20 +00:00
|
|
|
##### Public variables #####
|
|
|
|
|
|
|
|
audio KEYWORD2
|
|
|
|
arduboy_logo KEYWORD2
|
|
|
|
arduboy_logo_compressed KEYWORD2
|
|
|
|
arduboy_logo_sprite KEYWORD2
|
|
|
|
currentButtonState KEYWORD2
|
|
|
|
font5x7 KEYWORD2
|
|
|
|
frameCount KEYWORD2
|
|
|
|
previousButtonState KEYWORD2
|
|
|
|
sBuffer KEYWORD2
|
|
|
|
|
|
|
|
# Arduboy2Beep classes
|
|
|
|
duration KEYWORD2
|
|
|
|
|
2015-05-01 05:26:58 +00:00
|
|
|
#######################################
|
|
|
|
# Constants (LITERAL1)
|
|
|
|
#######################################
|
|
|
|
|
2016-11-21 21:31:10 +00:00
|
|
|
ARDUBOY_LIB_VER LITERAL1
|
|
|
|
|
2018-03-07 22:39:06 +00:00
|
|
|
ARDUBOY_UNIT_NAME_LEN LITERAL1
|
2020-06-18 21:37:33 +00:00
|
|
|
ARDUBOY_UNIT_NAME_BUFFER_SIZE LITERAL1
|
2018-03-07 22:39:06 +00:00
|
|
|
|
2016-11-21 21:31:10 +00:00
|
|
|
EEPROM_STORAGE_SPACE_START LITERAL1
|
|
|
|
|
2016-06-15 20:18:06 +00:00
|
|
|
HEIGHT LITERAL1
|
|
|
|
WIDTH LITERAL1
|
|
|
|
|
2015-05-01 05:26:58 +00:00
|
|
|
BLACK LITERAL1
|
|
|
|
WHITE LITERAL1
|
2016-11-21 21:31:10 +00:00
|
|
|
INVERT LITERAL1
|
2015-05-01 05:26:58 +00:00
|
|
|
|
2016-11-22 19:05:52 +00:00
|
|
|
CLEAR_BUFFER LITERAL1
|
|
|
|
|
2016-06-15 20:18:06 +00:00
|
|
|
A_BUTTON LITERAL1
|
|
|
|
B_BUTTON LITERAL1
|
|
|
|
DOWN_BUTTON LITERAL1
|
|
|
|
LEFT_BUTTON LITERAL1
|
|
|
|
RIGHT_BUTTON LITERAL1
|
|
|
|
UP_BUTTON LITERAL1
|
|
|
|
|
|
|
|
PIN_SPEAKER_1 LITERAL1
|
|
|
|
PIN_SPEAKER_2 LITERAL1
|
|
|
|
|
|
|
|
BLUE_LED LITERAL1
|
|
|
|
GREEN_LED LITERAL1
|
|
|
|
RED_LED LITERAL1
|
|
|
|
|
|
|
|
RGB_OFF LITERAL1
|
|
|
|
RGB_ON LITERAL1
|
|
|
|
|
2018-03-07 21:23:47 +00:00
|
|
|
ARDUBOY_NO_USB LITERAL1
|
|
|
|
|