Commit Graph

1485 Commits

Author SHA1 Message Date
rob tillaart
9d290fe4fc + added support for all errors 2014-10-23 16:15:26 +02:00
rob tillaart
0a3df91ed3 + 0.1.04
+ changed float to double (for platforms which support it)
+ changed divisions in multiplications
+ fixed uint32_t readADC()
+ reduced size of C array by 1 float
+ added second order temperature compensation
2014-10-19 13:02:42 +02:00
rob tillaart
2e5b971a8f + 0.1.03
+ changed math to float [test version]
2014-10-19 13:01:09 +02:00
rob tillaart
e4db5d21e6 + 0.1.02 (first stable version)
+ fixed bug return value read()
+ fixed bug #bits D2
+ added MS5611_READ_OK
+ added inline getters for temp & pres & lastresult.
+ adjusted delay's based on datasheet
+ merged convert functions
+ fixed offset in readProm()
+ added example/test application
2014-10-19 13:00:16 +02:00
rob tillaart
8d24e1bef7 + refactored (not stable version) 2014-10-19 12:55:45 +02:00
rob tillaart
920d72b5f4 + initial version (not stable) 2014-10-19 12:54:35 +02:00
rob tillaart
e722f7d26c + version 0.1.17
+ replaced micros() with adaptive loopcount
+ removed DHTLIB_INVALID_VALUE (user should decide if value is usable)
+ more detailed errors per phase of handshake
+ added DHTLIB_ERROR_CONNECT
+ added DHTLIB_ERROR_ACK_L  DHTLIB_ERROR_ACK_H
+ added fix for pre 1.0 (not tested)
2014-10-15 08:00:59 +02:00
rob tillaart
41cc579488 + masking unused bits (less errors);
+ refactored bits[] usage
2014-10-15 07:48:27 +02:00
rob tillaart
fa681d5322 + reduced # micros calls 2->1 in inner loop. => footprint -18
detection of the zero/one is doen by measuring the whole bit LOW+HIGH
+ improved wait for acknowledge
+ merged two loopCounters into one.
+ layout
+ dht22_test sketch collects statistics (every 20 reads)
2014-10-08 16:37:30 +02:00
rob tillaart
e4ad65003b + replace digital read with faster (~3x) code
=> smaller footprint
  => more robust for low MHz devices
2014-10-05 10:52:52 +02:00
rob tillaart
51a730b10f fixed merge conflict 2014-07-06 22:40:46 +02:00
rob tillaart
773812c533 cleaned trailing spaces 2014-07-06 22:39:00 +02:00
rob tillaart
2c42fa84b8 + version 0.1.05
+ added option 0,1,2,4,8 to set the speeds tested
+ added option a to select the address range
+ added version string
+ improved help page
2014-07-06 22:26:33 +02:00
Rob Tillaart
9b0fa03fe6 fixed version number in help 2014-07-05 11:04:50 +02:00
rob tillaart
de108c6c51 + update 0.1.04
+ added URL
+ restricted addresses to meaningfull ones (+ comments)
+ removed some trailing spaces
2014-07-05 10:57:33 +02:00
rob tillaart
e198556dbe + initial version on GH 0.1.03 2014-07-05 10:50:56 +02:00
rob tillaart
9cbe3bf5f9 + update version 0.2.04
+ added getElement() (not released 0.2.03 version)
+ added getSize()    (not released 0.2.03 version)
+ added getCount()   (not released 0.2.03 version)
+ updated keywords.txt
+ added memory protection if there is not enough memory to allocate.
+ added return NAN instead of 0  for getAverage()
+ reduced _size, _cnt, _idx to uint8_t
+ changed extensions of example code to .ino
2014-07-03 22:00:45 +02:00
rob tillaart
9c13789f2d + version 0.1.01 (first working DHT22 simulation)
+ improved protocol implementation
+ refactor  to get code in logical place
+ support for negative temperature
+ improved comments
2014-06-26 20:58:20 +02:00
rob tillaart
4f46069705 + initial version (not working yet) 2014-06-26 20:54:44 +02:00
rob tillaart
457139956d + timing test code
+ removed old code
2014-06-26 20:51:18 +02:00
rob tillaart
e2d0b3b613 + version 0.1.13 (version 0.1.12 not usable -> skipped)
+ added support for DHT33 + DHT44
+ added test sketches for DHT33 + DHT44
+ improved protocol handling
+ refactored code style,
+ refactored footprint (part interface inline)
+ renamed private _read => _readSensor
+ added dht_tuning sketch to see timing
2014-06-26 20:48:20 +02:00
rob tillaart
ba5e9bd8f9 refactored TIMEOUT 2014-06-01 13:58:36 +02:00
rob tillaart
1f2314cdbf optimized wakeup and timeout 2014-06-01 09:48:06 +02:00
rob tillaart
1f8c5f06bb + refactored
+ code style
+ names more explicit e.g. address -> memoryAddress
2014-05-21 21:18:35 +02:00
Rob Tillaart
773a1fd0f9 Merge pull request #7 from odbol/master
Updated I2C_EEPROM lib for Arduino Due, added support for smaller EEPROM chips
2014-05-21 19:37:51 +02:00
odbol
511d613332 Added another test for smaller, one-word addressable EEPROMS 2014-05-12 01:59:20 -07:00
odbol
ab454feb86 Added variable page size from guessing given device size. Added support for one-word addresses (for smaller chips) 2014-05-12 01:41:31 -07:00
odbol
d8bb224efc Updated to work on Arduino Due. 2014-05-12 00:22:09 -07:00
rob tillaart
2f60754376 update 2014-02-10 18:56:59 +01:00
rob tillaart
926b202e2c + now including the readme.txt 2014-02-10 18:56:10 +01:00
rob tillaart
f6112483d7 Merge branch 'master' of github.com:RobTillaart/Arduino 2014-02-09 19:38:42 +01:00
rob tillaart
54c8c468ef + initial version of readme
+ fix versionnr
2014-02-09 19:35:40 +01:00
rob tillaart
825102f696 + initial version of readme 2014-02-08 13:54:40 +01:00
rob tillaart
616ee0c061 + 0.1.09
+ optimize size
+ timeout check
+ use of mask to minimize shifts
+ added time measurement in dht22_test
+ reindented code
2014-02-08 13:53:52 +01:00
rob tillaart
5be850301c + fixed negative temperatures (internal too) 2014-01-24 21:15:51 +01:00
rob tillaart
9b2fe13d96 + added offset for temperature (constant)
+ added demo4
+ updated demo3
2014-01-24 21:13:07 +01:00
Rob Tillaart
2c2316f817 + version 0.1.01
+ optimized _read() function for speed
  based upon numbers from datasheet
+ some refactoring
+ added demo2 - delta-read
+ added demo3 - measure timing
2014-01-02 22:24:55 +01:00
Rob Tillaart
d59d553eb2 + initial version 0.1.00
+ two demo sketches
+ short readme.txt
2014-01-02 14:26:26 +01:00
Rob Tillaart
94bb47b666 +replaced statistics -> statistic 2013-12-19 20:38:11 +01:00
Rob Tillaart
a2547d9f51 + 1.1.00 breaking interface
+ begin() addded, needs to be called before use - e.g. in setup() -
+ faster block Wire.Write()
+ removed int casting
+ updated and removed comments
+ updated test sketch
2013-12-15 17:00:26 +01:00
Rob Tillaart
0611abf7d3 + 0.1.04
+ fixed powerDownMode (still experimental,use with care)
+ added corrections to powerOnReset()
+ added corrections to powerOnWakeUp()
+ changed interface + behavior of writePowerDownMode()
+ added conditional code where needed
+ added testcode for powerDownMode()
2013-12-04 19:42:58 +01:00
Rob Tillaart
e2cd8c1a75 + 0.1.03
+ added powerDownCode
  (code/interface is experimental, test + refactor needed)
+ added RDY test in several places
+ removed smooth2Value() => sample sketch
+ extended test sketch
+ tested on 100, 400, 800 KHz (works)
2013-12-01 22:09:02 +01:00
Rob Tillaart
79a66c4bc8 + 0.1.02
+ added readEEPROM
+ added RDY (to check EEPROM write is done)
+ writeDAC() has got a flag for writing to EEPROM
+ prepare for PowerDownMode
+ cleaned up code a bit (some more still needed)
2013-12-01 19:33:59 +01:00
Rob Tillaart
f252aa514e + 0.1.01
+ added readDAC(), writeDAC(val), registerWriteMode()
+ made part conditional - MCP4725_EXTENDED - to minimize footprint
+ upgraded test sketch
+ some layout
+ prep EEPROM & PowerDownMode
2013-11-30 23:41:37 +01:00
Rob Tillaart
144e1d7e02 + extended example
+ set I2C -> 100KHz
2013-11-30 22:21:07 +01:00
Rob Tillaart
4126dfc63a + 0.1.08
+ minor revision of comments
+ added formula for timeout to support DUE
2013-11-26 08:29:24 +01:00
Rob Tillaart
d7e68d4c3a + version 0.1.00 initial
+ writeFastMode() only - basic
+ setValue(v)
+ smooth2Value(v, n) - in n steps to new value
2013-11-24 21:59:40 +01:00
Rob Tillaart
85e3149d9e + update version number
+ additional test
2013-11-09 20:26:51 +01:00
Rob Tillaart
6474ea52b1 +version 0.1.02
+ added setIndentSize()
+ corrected history
+ added escape() for special chars.
+ added comments/examples in .h file
+ added some #defines
2013-11-08 17:13:13 +01:00
Rob Tillaart
65f592b29d + version 0.1.01
+ complete rewritten to be more logical (still work in progress)
+ made some private methods public
+ made some methods conditional to keep footprint small
+ updated demo program to show various methods
2013-11-07 20:02:40 +01:00