Reference Language | Libraries | Comparison | Changes
Set a dot at Trixel coordinates x, y to black or a given color or combine old and new colors.
No change appears on the physical display
until rendered by the show() function.
Trixel.setDot(x, y)
Trixel.setDot(x, y, color)
Trixel.setDot(x, y, color, operator)
x: dot horizontal position, 0 = leftmost
y: dot vertical position, 0 = topmost
color (optional): 0 = white, 1 = black
operator (optional): Boolean binary operator to combine old and new color values:
new color | 1 | 1 | 0 | 0 | |
---|---|---|---|---|---|
old color | 1 | 0 | 1 | 0 | |
boole_clr | 0 | 0 | 0 | 0 | ignore both colors, use white |
boole_nor | 0 | 0 | 0 | 1 | |
boole_andc2 | 0 | 0 | 1 | 0 | like white ink |
boole_c2 | 0 | 0 | 1 | 1 | |
boole_andc1 | 0 | 1 | 0 | 0 | |
boole_c1 | 0 | 1 | 0 | 1 | |
boole_xor | 0 | 1 | 1 | 0 | exclusive or: like negative ink — repeat to undo |
boole_nand | 0 | 1 | 1 | 1 | |
boole_and | 1 | 0 | 0 | 0 | |
boole_eqv | 1 | 0 | 0 | 1 | |
boole_1 | 1 | 0 | 1 | 0 | do nothing: ignore new color, use old color |
boole_orc2 | 1 | 0 | 1 | 1 | |
boole_2 | 1 | 1 | 0 | 0 | default: ignore old color, use new color |
boole_orc1 | 1 | 1 | 0 | 1 | |
boole_ior | 1 | 1 | 1 | 0 | inclusive or: like black ink |
boole_set | 1 | 1 | 1 | 1 | ignore both colors, use black |
Corrections, suggestions, and new documentation should be posted to the Forum.
The text of the Arduino reference is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are released into the public domain.