Commit Graph

31 Commits

Author SHA1 Message Date
Sébastien Millet e2fb718f5d RELEASE 0.7.7 2024-02-18 14:05:14 +01:00
Sébastien Millet 0477b30e59 Removes symlinks to make arduino-lint happy
- arduino-lint complains about symlinks in the repo and this leads
      to github updates NOT being taken into account by the Arduino
      Library Manager.
      The symlinks were all about am2 and Makefile. Although result is
      not ideal, I've replaced symlinks with hardlinks.
2024-02-18 14:02:18 +01:00
Sébastien Millet ce6e960758 Merge branch 'main' of https://github.com/sebmillet/RF433any 2022-11-01 09:56:10 +01:00
Sébastien Millet 373c377b35 Adds simul directory
- Also fixes a possible bug in test.ino where a variable could be used
  without being set.
2022-11-01 09:54:31 +01:00
sebmillet e1fab220ae
Merge pull request #7 from alex-eri/patch-1
ISO C++ forbids declaration of 'fatal' with no type [-fpermissive]
2022-11-01 09:48:01 +01:00
alex-eri b91028f4ed
ISO C++ forbids declaration of 'fatal' with no type [-fpermissive] 2022-10-21 10:37:09 +03:00
Sébastien Millet 68f0d89732 Switches from arduino-builder to arduino-cli
- This switch is done by the new script 'am2' (replacing 'am') and
  updated Makefiles.

- Also fixes a bug in RF433Debug where the buffer used to copy strings
  from PROGMEM was not big enough. To ensure such a bug does not
  re-occur, now RF433Debug lib checks this condition and should that be
  the case, it prints out a fatal error and stops.
2022-09-20 20:39:05 +02:00
Sébastien Millet 9071e2d9d2 Manages compact integers in the test plan
*WARNING*
  Actual code *DOES NOT PASS* tests 3 and above.
  It only passes test 1 and 2

- In order to save memory during the test plan, the read durations are
  saved in 'compact' form, using compact() to reduce their size and
  uncompact() to get their 'original' value (not exactly 'original' as
  some precision is lost on the way).
  Durations (without compact) are typically uint16_t whereas in compact
  form, it is uint8_t, saving 50% of space.
  The precision loss (see comment written on top of compact()) is fine
  with the code logic.
2022-09-17 19:03:29 +02:00
Sébastien Millet 9dff51891f RELEASE 0.7.6 2022-01-31 21:35:10 +01:00
sebmillet 51201c6c53
Merge pull request #3 from vojtechj/main
changed cli and sei to more portable functions
2022-01-31 21:25:27 +01:00
vojtechj 2d641530f7
changed cli and sei to more portable functions 2022-01-31 16:18:54 +01:00
Sébastien Millet 8f8eded594 RELEASE 0.7.5 2022-01-16 09:35:58 +01:00
Sébastien Millet 84cb6a6132 Updates bare minimum initseq to 2000 us
- Previous value was 4000 us (4000 microseconds). This was too short to
  identify certain RCSwitch protocols (like protocol 7).

- Also a few minor updates in README and example code
2022-01-16 09:34:06 +01:00
Sébastien Millet faef869755 RELEASE 0.7.4 2021-12-26 11:50:21 +01:00
Sébastien Millet d84700411b Reorganizes examples
- The first example, 01_main.ino, is the one displaying output meant to
  be used by the RF433recv library.
2021-12-26 11:45:50 +01:00
Sébastien Millet a0e07369fa RELEASE 0.7.3 - fixes a bug where last_low was wrong
- last_low could be (wrongly) equal to zero.

- Also creates a fifth example, found in
  examples/05_print_code_for_RF433recv_lib

- Fixes a minor issue (a bug? almost) where the separator could be
  bigger than the initialization sequence. Now sep will always be lower
  than, or equal to, initseq.
2021-12-20 15:19:40 +01:00
Sébastien Millet ef74c2c5c0 Release 0.7.2
- Delta since 0.7.1 = update of ozgunawesome, to have it compile on ESP8266.
2021-07-25 15:21:23 +02:00
sebmillet b484b6014a
Merge pull request #1 from ozgunawesome/feature/ESP8266_compatible
ESP8266 compatibility
2021-07-25 15:12:57 +02:00
ozgunawesome 9d971025aa add necessary attribute if compiled on ESP8266 platform 2021-07-22 12:38:03 -07:00
Sébastien Millet e345c00fed Debug Serial renamed RF433Debug RF433Serial resp.
- Debug lib could clash with other lib users, and has been renamed into
  RF433Debug.
  Same with Serial, renamed into RF433Serial.

- Some constants/classes used inside these libs, have also been renamed
  to have RF433 prefix.
2021-07-17 16:37:15 +02:00
Sébastien Millet bb935c7bd6 Updates example code number 4
- Adds call to setopt_wait_free_433_before_calling_callbacks to
  04_callback.ino.
2021-07-11 19:05:45 +02:00
Sébastien Millet f535d56cdb Implements callbacks tied to specific codes
- The new function register_callback allows to call a function when a
  given code is received. Allows to:

  - Register as many callbacks as needed

  - Optionally call wait_free_433() before calling callback

  - Provide a minimum delay betwen two consecutive calls of the
    callback, allowing to de-duplicate code reception (a very common
    situation with RF 433 Mhz code reception).
2021-07-11 18:59:25 +02:00
Sébastien Millet 386e52e1e2 Provides a way to build BitVector data directly
- Also provides wait_free_433(), that will execute so long as there is a
  signal received (whatever it is).
2021-07-03 17:17:56 +02:00
Sébastien Millet d3223ec490 Fixes a minor issue on example number 2
- The data content was not displayed (only the signal timings). This has
  been fixed.
2021-06-17 21:43:23 +02:00
Sébastien Millet 5679085923 Release 0.5.2 2021-06-10 08:08:53 +02:00
Sébastien Millet c88ebb74cf Removes assert from RF433any.h
- RF433any uses its own assert mechanism. I had made it available in
  RF433any.h so that test.ino could use it, but it is not logical (an
  RF433any user could face a conflict if using RF433any and their own,
  or the default, assert).
  Now assert is defined only in RF433any.cpp.
  This of course requested test.ino to define its own assert, that was
  done, too.
2021-06-10 08:05:25 +02:00
Sébastien Millet 08b947ffeb Updates the LICENSE file to match LESSER glp v3
- I had left the LICENSE file of the GPL v3 instead of the Lesser GPL v3
  (as is more logical, speaking of a library...)
2021-06-04 17:08:45 +02:00
Sébastien Millet 3d3dfa2062 Updates README.md 2021-06-04 16:01:05 +02:00
Sébastien Millet 5230785d3f Adds one example and normalizes names
- There are now two examples in the examples directory.

- Adds RF433ANY_ prefix to macros as needed.

- Passes arduino-lint check.
2021-06-04 15:55:01 +02:00
Sébastien Millet 7864217c19 Moves tesplan in extras
- As per arduino-lint output, a sub-folder containing a .ino file must
  be located in the 'extras' folder.
2021-06-04 13:26:58 +02:00
Sébastien Millet 1497821b2e Initial Upload 2021-06-04 11:57:28 +02:00