New module: POT board
#22
Hi,
Below is the program section taken from the WifiAppDemo. ( I will post the full source code later in the wiki page)

tmpH is the MSB and tmpL is the LSB of the temperature or humidity reading from the device, if current pClientProp->i2ccmdstep is under step3, the tmpvalue is humidity reading, or else is the temperature reading. The calculation is in the if-else loop.


                tmpvalue=(double)(256*tmpH)+tmpL;
                if (pClientProp->i2ccmdstep==step3)
                {
                    //Humidity reading
                    pDrvHumidity->humidity=(float)(125*tmpvalue/65536)-6;
                    DMgr_RecNextStep(pClientProp,&DrvHumidity_refresh);
                }
                else {
                    //temperature reading
                    pDrvHumidity->temperature=(float)(175.72*tmpvalue/65536)-46.8;
                    pDrvHumidity->dataready=1;
                    DMgr_SendDone(pClientProp);
                }

Just uploaded the full source code for the Wifi Remote I2c Server and the Demo App. The link in the wiki are,
http://wiki.pine64.org/index.php/Wifi_Re...c#Download
  Reply


Messages In This Thread
New module: POT board - by Crispin - 01-30-2016, 07:30 PM
RE: New module: POT board - by Ghost - 01-30-2016, 08:11 PM
RE: New module: POT board - by stephen fleming - 01-30-2016, 08:19 PM
RE: New module: POT board - by CanadianIceTech - 01-30-2016, 11:00 PM
RE: New module: POT board - by stephen fleming - 01-31-2016, 11:42 AM
RE: New module: POT board - by CanadianIceTech - 01-31-2016, 03:59 PM
RE: New module: POT board - by khgoh - 01-31-2016, 05:43 PM
RE: New module: POT board - by CanadianIceTech - 01-31-2016, 06:18 PM
RE: New module: POT board - by Crispin - 01-30-2016, 11:43 PM
RE: New module: POT board - by duane - 01-31-2016, 12:20 AM
RE: New module: POT board - by MichaelMeissner - 01-31-2016, 08:24 AM
RE: New module: POT board - by Crispin - 01-31-2016, 08:18 PM
RE: New module: POT board - by MichaelMeissner - 01-31-2016, 07:00 PM
RE: New module: POT board - by khgoh - 01-31-2016, 07:27 PM
RE: New module: POT board - by MichaelMeissner - 01-31-2016, 08:46 PM
RE: New module: POT board - by Liuka Finke - 02-19-2016, 10:13 AM
RE: New module: POT board - by MichaelMeissner - 02-19-2016, 11:54 AM
RE: New module: POT board - by khgoh - 02-20-2016, 03:59 AM
RE: New module: POT board - by COMPUTIAC - 02-22-2016, 10:53 PM
RE: New module: POT board - by khgoh - 02-22-2016, 11:33 PM
RE: New module: POT board - by Artyom - 07-05-2016, 01:19 PM
RE: New module: POT board - by khgoh - 07-07-2016, 09:13 PM
RE: New module: POT board - by Artyom - 07-08-2016, 09:45 AM
RE: New module: POT board - by khgoh - 07-11-2016, 04:01 AM
RE: New module: POT board - by Artyom - 07-12-2016, 11:02 AM
RE: New module: POT board - by khgoh - 07-12-2016, 08:47 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  I2C Expansion Board DonFL 39 57,369 08-16-2022, 10:29 AM
Last Post: AndrewC78
Question Z-Wave module pinout to make it compatible with Pi b+ ebretteville 59 84,676 07-12-2019, 08:55 AM
Last Post: kris240376
  Poll: interest for SPDIF-only POT board? amp 0 2,577 05-01-2019, 11:17 PM
Last Post: amp
  Audio DAC pot board nejec 2 6,459 12-09-2017, 01:43 PM
Last Post: nejec
  KICAD Quick Lib and Module Generator mbt28 1 4,698 02-12-2017, 10:45 PM
Last Post: tllim
  Z Wave Module and still using GPIO bang 2 5,810 01-16-2017, 03:12 AM
Last Post: bang
  Zwave Board: 300, 400 or 500? Lugor 4 8,392 01-10-2017, 08:55 PM
Last Post: Lugor
  Z-Wave US module with adapter aegrotatio 4 7,292 01-08-2017, 12:03 AM
Last Post: aegrotatio
  RaZberry Module (z-wave) need support to get it working! Luxus 13 19,062 11-03-2016, 02:04 AM
Last Post: Luxus
  Z-Wave module problem vintagewaffle 0 2,361 10-26-2016, 10:50 AM
Last Post: vintagewaffle

Forum Jump:


Users browsing this thread: 2 Guest(s)