Our new official repo is on github
LCD Smartie version 5.6 is released!
Download it now: https://github.com/LCD-Smartie/LCDSmartie/releases

Requesting for calculate plugin

Place your requests for plugins here

Moderators: _X7JAY7X_, caesar, IFR, mattcro, limbo

Post Reply
qiqiji
Posts: 14
Joined: April 6th, 2005, 5:03 pm

Requesting for calculate plugin

Post by qiqiji »

+ - * / calculate plugin needed ...

if parameters =1 ,means "+"
if parameters =2 ,means "-"
if parameters =3 ,means "*"
if parameters =4 ,means "/"

if i use
$dll(cal,1,123,456) can display 579

if i use
$dll(cal,2,333,222) can display 111

if i use
$dll(cal,3,12,4) can display 48

if i use
$dll(cal,4,200,50) can display 4
limbo
Plugin Author
Posts: 1604
Joined: February 13th, 2005, 7:38 pm
Location: Athens - Greece
Contact:

Post by limbo »

I republish a thread of old forums
It explains the usage of demo.dll shipped with LCD Smartie
I think this can cover the basics on calculations




The Demo.dll shipped with the LCD smartie program has some useful functions you can use...
Try to play with it its great. Special with math functions that smartie doesn't support in current version.
usage is
$dll(demo.dll,5,param1,param2) where "demo.dll" is the filename, 5 is the number of function you want to call, param1 is the first parameter and param2 is the second parameter you send to dll.


A list with function discovered follows:

1=add
example: $dll(demo.dll,1,44,192)
result:=236

2=subtrack
example: $dll(demo.dll,2,44,192)
result:=-148

3=multiply
example: $dll(demo.dll,3,44,192)
result:=8448

4=divide
example: $dll(demo.dll,4,44,192)
result:=0.23

5=display as par1par2
example: $dll(demo.dll,5,44,192)
result:=19244

6=diplay time
example: $dll(demo.dll,6,44,192)
result:=2:07:32 pm

7=display credits screen
example: $dll(demo.dll,7,44,192)
result:=BasieP Ruled

8=display non character text
example: $dll(demo.dll,8,LCD SMARTie,192)
result:=|CD 5|\/|4R7i3


Function 9:
9 is for converting the output from $bar so that _ and the full block can be changed to other characters (such as custom defined characters...)

Usage is: $dll(demo,9,[string],[char1][char2])
example: $dll(demo,9,$Bar($CPUUsage%,100,10),AB)
This would cause a bar graph to be displayed but instead of _ a B will appear, and instead of a full block a A will appear. This can be used with other commands than $Bar.

Function 10:
10 seems to be doing ( parameter1 * 1.8 ) + 32 - So may be good for converting from degrees Celcius to degrees Fahrenheit.


qiqiji
Posts: 14
Joined: April 6th, 2005, 5:03 pm

Post by qiqiji »

thanks very much :P
qiqiji
Posts: 14
Joined: April 6th, 2005, 5:03 pm

Post by qiqiji »

one more question

for example

$dll(demo.dll,4,45674,1024)
result:=44.6

if i only want the integer number 44

what can i do?

thanks again
limbo
Plugin Author
Posts: 1604
Joined: February 13th, 2005, 7:38 pm
Location: Athens - Greece
Contact:

Post by limbo »

This is not supported by demo.dll :(

Try to alter the result with Round plugin www.eserver.gr
Credo_s
Posts: 7
Joined: June 6th, 2005, 9:39 am

Post by Credo_s »

The formula of such kind calculation PR AMD from frequency PR = (CPUSpeed*3)/2 + 200
formula :

$dll(demo.dll,1,$dll(demo.dll,4,$dll(demo.dll,3,$CPUSpeed,3),2),192)
Post Reply