mirror of
https://github.com/geekammo/MicroView-Arduino-Library.git
synced 2026-02-19 19:11:22 +01:00
Using sprintf generates a large amount of code. By replacing the sprintf calls with dedicated code, program size is reduced when widgets are used. Also: - Added a getValLen method for widgets which returns the print length for the current value, similar to the existing getMaxValLen. - The value for widgets is now initialised to the minimum value, instead of 0, because 0 could be outside the specified range. - Added getValLen and getMaxValLen keywords. - The MicroViewWidgetDemo example sketch was modified to use the new getValLen method, plus a few other small changes.
90 lines
1.7 KiB
Plaintext
90 lines
1.7 KiB
Plaintext
#######################################
|
|
# Syntax Coloring Map For MicroView
|
|
#######################################
|
|
|
|
#######################################
|
|
# Datatypes (KEYWORD1)
|
|
#######################################
|
|
|
|
MICROVIEW KEYWORD1
|
|
uView KEYWORD1
|
|
MicroViewWidget KEYWORD1
|
|
MicroViewSlider KEYWORD1
|
|
MicroViewGauge KEYWORD1
|
|
|
|
#######################################
|
|
# Methods and Functions (KEYWORD2)
|
|
#######################################
|
|
|
|
begin KEYWORD2
|
|
clear KEYWORD2
|
|
invert KEYWORD2
|
|
contrast KEYWORD2
|
|
display KEYWORD2
|
|
setCursor KEYWORD2
|
|
pixel KEYWORD2
|
|
line KEYWORD2
|
|
lineH KEYWORD2
|
|
lineV KEYWORD2
|
|
rect KEYWORD2
|
|
rectFill KEYWORD2
|
|
circle KEYWORD2
|
|
circleFill KEYWORD2
|
|
drawChar KEYWORD2
|
|
getLCDWidth KEYWORD2
|
|
getLCDHeight KEYWORD2
|
|
setColor KEYWORD2
|
|
setDrawMode KEYWORD2
|
|
getFontWidth KEYWORD2
|
|
getFontHeight KEYWORD2
|
|
getTotalFonts KEYWORD2
|
|
getFontType KEYWORD2
|
|
setFontType KEYWORD2
|
|
getFontStartChar KEYWORD2
|
|
getFontTotalChar KEYWORD2
|
|
scrollRight KEYWORD2
|
|
scrollLeft KEYWORD2
|
|
scrollVertRight KEYWORD2
|
|
scrollVertLeft KEYWORD2
|
|
scrollStop KEYWORD2
|
|
flipVertical KEYWORD2
|
|
flipHorizontal KEYWORD2
|
|
setColumnAddress KEYWORD2
|
|
setPageAddress KEYWORD2
|
|
data KEYWORD2
|
|
getScreenBuffer KEYWORD2
|
|
|
|
getX KEYWORD2
|
|
getY KEYWORD2
|
|
setX KEYWORD2
|
|
setY KEYWORD2
|
|
getMinValue KEYWORD2
|
|
getMaxValue KEYWORD2
|
|
setMaxValue KEYWORD2
|
|
setMinValue KEYWORD2
|
|
setValue KEYWORD2
|
|
getValLen KEYWORD2
|
|
getMaxValLen KEYWORD2
|
|
draw KEYWORD2
|
|
reDraw KEYWORD2
|
|
drawFace KEYWORD2
|
|
drawNumValue KEYWORD2
|
|
checkComm KEYWORD2
|
|
|
|
#######################################
|
|
# Constants (LITERAL1)
|
|
#######################################
|
|
|
|
BLACK LITERAL1
|
|
WHITE LITERAL1
|
|
NORM LITERAL1
|
|
XOR LITERAL1
|
|
PAGE LITERAL1
|
|
ALL LITERAL1
|
|
WIDGETSTYLE0 LITERAL1
|
|
WIDGETSTYLE1 LITERAL1
|
|
WIDGETSTYLE2 LITERAL1
|
|
WIDGETSTYLE3 LITERAL1
|
|
WIDGETNOVALUE LITERAL1
|
|
|