Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Code Samples & Tips > Additional Libraries
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Additional Libraries Users contributed libraries.
This sub-forum is only available to licensed users.

HTCSensors library for HTC Diamond

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-28-2008, 06:24 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 6,072
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default HTCSensors library for HTC Diamond

A further development of the library that Mr_Gee found in this thread http://www.basic4ppc.com/forum/quest...lerometer.html

The light sensor, stylus sensor and navigation control are now supported in addition to the accelerometer.

EDIT:- For Basic4ppc version 6.90 or later the demo needs a slight modification. See post #26 for details.
Attached Files
File Type: zip HTCSensors1.0.zip (18.5 KB, 392 views)

Last edited by agraham : 09-16-2010 at 08:03 AM.
Reply With Quote
  #2 (permalink)  
Old 10-28-2008, 11:41 PM
Basic4ppc Veteran
 
Join Date: Feb 2008
Location: Hilversum, The Netherlands
Posts: 295
Awards Showcase
Beta Tester 
Total Awards: 1
Default

you are the man, sorry i didn't get around to posting the spb file with the functions of your previous version, ill do that when i get my pc back
Reply With Quote
  #3 (permalink)  
Old 12-24-2008, 10:23 AM
Newbie
 
Join Date: Apr 2007
Location: Erding, near Munich, Germany
Posts: 5
Default G-sensor lib for HTC Touch HD too?

I can't get it working on my Touch HD? Startup of library seems not to work. Anybody out there with any ideas?

Merry Christmas and a happy new year
csandman
Reply With Quote
  #4 (permalink)  
Old 02-22-2009, 11:19 AM
Newbie
 
Join Date: Jan 2008
Posts: 7
Question compile error compiling 'HTCSensors library for HTC Diamond' demo source project

Hi,
I downloaded the library at http://www.basic4ppc.com/forum/attac...sensors1.0.zip but if I try to compile HTCSensorsDemo.sbp the compiler doesn't compile ("Variable main.unknown1 in sub main.getgsensordata is never used. Occurred on line: 49 End Sub"; see attached screenshots).

May you help me?

Thanks!

UTISS.DEV01
Attached Files
File Type: zip HTCSensorsDemo.sbp compile error.zip (191.3 KB, 43 views)
Reply With Quote
  #5 (permalink)  
Old 02-22-2009, 11:29 AM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 6,072
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

It's a Basic4ppc warning aboout an unused variable. Either remove line 39 or untick Tools->Check for unassigned/unused variables.
Reply With Quote
  #6 (permalink)  
Old 02-22-2009, 05:05 PM
Newbie
 
Join Date: Jan 2008
Posts: 7
Thumbs up It's Run!

Yes, if I uncheck the checkbox demo is compiled!
THANKS!
Reply With Quote
  #7 (permalink)  
Old 03-27-2009, 09:11 AM
CryoGenID's Avatar
Knows the basics
 
Join Date: Feb 2009
Location: Munich, Germany
Posts: 62
Default

Hello!

This is an awesome dll!
Thanks a lot for writing it!

But I have a question:
Are you planning (which I could use very well *g*) on implementing
a possibility to change the backlight intensity?
(Like this program here does: Lumos@XDA-Devs

Thanks a lot for your help!

Best regards,

Chris
Reply With Quote
  #8 (permalink)  
Old 03-27-2009, 09:26 AM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 6,072
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

I'm afraid not.
Reply With Quote
  #9 (permalink)  
Old 03-27-2009, 09:28 AM
CryoGenID's Avatar
Knows the basics
 
Join Date: Feb 2009
Location: Munich, Germany
Posts: 62
Default

Agraham,

thanks for your reply!
What a pity, that would have been perfect...

But anyway: Thanks a lot for the HTCSensors-Library

Best regards,

Chris
Reply With Quote
  #10 (permalink)  
Old 01-15-2010, 10:11 PM
Newbie
 
Join Date: Aug 2007
Posts: 1
Default just getting started

Hi ... Can you tell me what version of Basic4PPC is needed to use the HTCSensors library?

I have 6.01 and when I tried to load the demo program, I got an error that this file was created under a newer version.

I'm simply trying to detect if the keyboard is slid-out on an HTC Touch Pro 2. Not trying anything fancy. An old B4PPC program I wrote looks bad when the screen rotates due to keyboard being slid-out, so I figure if I can detect it being open or closed, then I can redraw the screen correctly.

Any suggestions?

Thanks
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Door library (Beta) - Special library Erel Official Updates 60 01-13-2011 11:23 AM
Merging Outlook library and Phone library Erel Official Updates 11 09-15-2010 09:22 AM
diamond owners please read Mr_Gee Questions (Windows Mobile) 5 11-23-2008 03:04 PM
PhoneticAlgorithms Library (ex-StringComparison Library) moster67 Additional Libraries 10 11-11-2008 07:46 PM
Large menus of IDE not readable on Touch Diamond hweihe Bug Reports 11 10-06-2008 06:57 PM


All times are GMT. The time now is 06:32 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0