Post Reply 
Is there a single website for tutorials, etc..
10-06-2017, 10:14 PM (This post was last modified: 10-06-2017 10:15 PM by webmasterpdx.)
Post: #14
RE: Is there a single website for tutorials, etc..
Well there are a lot of tiny little program snippets, like to get the battery level from the icon, I use the code below. It's too small to put as an app and wouldn't really fit in the hpcalc format. It needs to be in a different "utility and snippet" site, which is how I envision the software library at MOHPC being....

Code:

EXPORT BATVAL() // Battery test
BEGIN
LOCAL x:=315,d:=#D6DEDEh;
CASE
IF GETPIX_P(x,14)==d THEN RETURN 0; END;
IF GETPIX_P(x,11)==d THEN RETURN 25; END;
IF GETPIX_P(x,8)==d THEN RETURN 50; END;
IF GETPIX_P(x,6)==d THEN RETURN 75; END;
DEFAULT RETURN 100;
END; // CASE...
END; // BEGIN...BATVAL()
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Is there a single website for tutorials, etc.. - webmasterpdx - 10-06-2017 10:14 PM



User(s) browsing this thread: 1 Guest(s)