forked from ukoda/lcd4linux-ax206
-
-
Notifications
You must be signed in to change notification settings - Fork 0
plugin_math
Alejandro Mora edited this page Mar 9, 2026
·
1 revision
This plugin provides some basic mathematical functions. This plugin will always be linked statically into LCD4Linux, and therefore does not follow the plugin_name::function scheme.
The Plugin defines the following variables:
| Pi | 3.14159.... |
|---|---|
| e | 2.718... |
| sqrt(x) | square root |
|---|---|
| exp(x) | base-e exponential function |
| ln(x) | natural logarithmic |
| log(x) | base-10 logarithmic |
| sin(x) | sine function |
| cos(x) | cosine function |
| tan(x) | tangent function |
| ceil(x) | round up to next integer |
| floor(x) | round down to next integer |
| min(a,b) | minimum of a and b |
| max(a,b) | maximum of a and b |
| decode(index,...) | return parameter specified by index |
| expression | result |
|---|---|
| decode(-1,'a','b') | !'' |
| decode(0,'a','b') | 'a' |
| decode(1,'a','b') | 'b' |
| decode(2,'a','b') | !'' |
| decode(3,'a','b','c','d','e','f') | 'd' |
The official LCD4Linux(AX206) Wiki
Back from the dead!
Back from the dead!
Documentation
Developers
Resources
Legacy (0.9)
AX206 Fork