Commit Graph

1198 Commits

Author SHA1 Message Date
HomeSpan f06bb4869a
Update Extras.md 2021-10-31 16:10:40 -05:00
HomeSpan 5ad030d471
Update Extras.md 2021-10-31 16:07:59 -05:00
HomeSpan f459635c75
Update TVServices.md 2021-10-31 15:57:38 -05:00
HomeSpan 9afb9f2cf5
Update TVServices.md 2021-10-31 15:52:58 -05:00
HomeSpan cd9da777a5
Update TVServices.md 2021-10-31 15:50:27 -05:00
HomeSpan f4b788839f
Update TVServices.md 2021-10-31 15:43:16 -05:00
HomeSpan 9b8f4d2b26
Update TVServices.md 2021-10-31 15:32:14 -05:00
HomeSpan 336ec18545
Update TVServices.md 2021-10-31 15:21:37 -05:00
HomeSpan 46aab531c8
Update TVServices.md 2021-10-31 10:21:28 -05:00
Gregg 49f40068b4 Merge branch 'dev+TV' of https://github.com/HomeSpan/HomeSpan into dev+TV 2021-10-31 10:03:20 -05:00
Gregg 6685768f5c Update Television.ino
Added `update()` logic for various key presses.
2021-10-31 10:03:18 -05:00
HomeSpan 4644d254c9
Update TVServices.md 2021-10-31 09:57:23 -05:00
HomeSpan fce9b85e24
Update TVServices.md 2021-10-30 23:23:24 -05:00
HomeSpan a55a697216
Update TVServices.md 2021-10-30 23:01:02 -05:00
HomeSpan a53d98070c Update version numbers to 1.4.1 2021-10-30 22:06:02 -05:00
HomeSpan be8dd811e8
Update TVServices.md 2021-10-30 17:10:44 -05:00
HomeSpan f2e0bf6089
Update README.md 2021-10-30 17:09:22 -05:00
Gregg 3cb08345f3 Create TVServices.md 2021-10-30 17:08:07 -05:00
HomeSpan 29cccd8aee
Update README.md 2021-10-30 17:04:07 -05:00
HomeSpan 2d2262d122
Update Reference.md 2021-10-30 17:00:18 -05:00
HomeSpan 5d92a876ec
Update Reference.md 2021-10-30 16:58:35 -05:00
HomeSpan 3cdd12f7b6
Update Reference.md 2021-10-30 16:58:02 -05:00
HomeSpan 59eb8e4cf3
Update Extras.md 2021-10-30 15:40:30 -05:00
HomeSpan 324848e330
Update Extras.md 2021-10-30 15:30:50 -05:00
Gregg 226548defa Added check to ensure Custom Characteristic has valid UUID
And also converted ERRORS to WARNINGS when a Characteristic that is not in the REQ or OPT list is specified for a Service.   This allows the user to add any Characteristic to any Service without forcing an Error (just a Warning).
2021-10-29 22:54:10 -05:00
Gregg 61a2be533b Moved Range checking to a standalone routine checkRanges()
Ranges are now checked for all Characteristics at the end of the configuration, instead of at the end of each Accessory definition.  This is much cleaner and the output is easier to read.

To do:  Revisit use of REQ and OPT - what should constitute a fatal error and what should be a warning.

To do:  Revisit Character definitions - attempt to normalize using the methods implemented for Custom Characteristics
2021-10-26 22:05:44 -05:00
Gregg 65b15b5628 Added AID info to Set Range log message 2021-10-26 05:39:54 -05:00
Gregg 92c198d01a Update src.ino 2021-10-25 22:10:44 -05:00
Gregg b6001f9418 Update Span.h 2021-10-25 21:58:51 -05:00
Gregg eb9530800e Created typedef for HAP types - used to simplify CUSTOM_CHAR
No need to specify both FORMAT and TYPE.   For example, specifying UINT16 automatically sets type to be uint16_t.

To do:  Explore if this can be used for standard Characteristics - revisit standard Characteristics definitions and structure to see if it can be simplified.
2021-10-25 21:57:29 -05:00
Gregg eeb3c334ac Update src.ino 2021-10-24 21:24:45 -05:00
Gregg 4309be8f91 Finalized CUSTOM_CHAR() macro to add a custom Characteristic 2021-10-24 21:19:38 -05:00
Gregg d5fa8335fb Update src.ino 2021-10-24 20:58:45 -05:00
Gregg 96d74e5920 Adding Macros to allow for creation of custom Characteristics and Service 2021-10-24 18:45:46 -05:00
Gregg 2d7ae5846d Finalized Television Example
Will appear in "Other Examples" Category, NOT as a tutorial
2021-10-24 07:47:32 -05:00
Gregg 37e0486cf7 Removed all unusable TV Characteristics from TV and Input Source Services
But retained the actual Characteristics in the Characteristics lists in the event that they may be activated in the Home App in the future.
2021-10-23 22:58:16 -05:00
Gregg 4eb1ebf806 Update HomeSpan.h 2021-10-23 13:21:21 -05:00
Gregg b90fc5aad5 Updated logic re STRING Characteristics
Added setString() as analog to setVal().  This complements getString and getNewString() which are analogs to getVal() and getNewVal().
2021-10-23 13:16:49 -05:00
Gregg dcbfbc3e15 Correct setVal() logic to properly check for EV permissions, not PW permissions 2021-10-22 09:17:26 -05:00
Gregg 8a24819955 Added Characteristic::ConfiguredNameStatic()
This "custom" Characteristic is identical to ConfiguredName() but only allows paired-read and notifications.  By excluding paired-write it prevents the user from editing the name of a TV input source from the Home App.  This is useful when some sources are fixed, such as "netflix" instead of generic, such as "hdmi 1".
2021-10-22 06:35:33 -05:00
Gregg 7c32f7a364 Fix bug in PushButton()
Ensure a pin value of -1 is retained so that any further calls to other methods are disabled if the pin is not defined.
2021-10-21 20:32:25 -05:00
Gregg d4603df58d Creating Television Example 2021-10-20 06:15:12 -05:00
Gregg 26c15c9ca2 Fixed strncpy() warnings
Changed strncpy() to strcpy() when copying new string values
2021-10-18 22:48:56 -05:00
Gregg f07fa4e9c7 Testing TV functions 2021-10-17 22:02:11 -05:00
HomeSpan 353749baea
Merge pull request #121 from unreality/master
add support for Televisions
2021-10-17 16:10:50 -05:00
HomeSpan 82d86001e2 Update extras.ino 2021-10-16 14:49:50 -05:00
HomeSpan 1566f93274 Update extras.ino 2021-10-16 11:33:49 -05:00
Gregg 760abae5ce Testing pronto codes 2021-10-16 08:16:22 -05:00
Gregg 5976fd3d0d Add enableCarrier(uint32_t frequency, float duty) and disableCarrier() to RFControl
Allows you to overlay a carrier wave on the RF Signal - in practice this is only used for IR signals (not RF).  Automatically scales frequency to account for 80x difference between APB Clock and Ref Tick Clock depending on which is used.   Checks to ensure resulting parameters (high period and low period) are all in bounds (0,65536) and reports an error if they are not.
2021-10-15 22:32:03 -05:00
Gregg 4ad607951f Add clock selection to RFControl (80 MHz or 1 MHz)
Added second argument to RFControl(uint8_t pin, boolean refClock=true) to allow choice of Ref Tick (1 MHz) clock or APB (80 MHz) clock.  Default is to use 1 MHz Ref Tick.

Also fixed bug in logic that divides clock for ESP32-C3.  Factor should be 79, not 80, since divider is apparently configured to divide by factor+1.
2021-10-15 18:16:18 -05:00