Commit Graph

854 Commits

Author SHA1 Message Date
Gregg 013622c263 Update .gitignore 2021-09-19 14:01:30 -05:00
Gregg 4d5a7754c7 Update .DS_Store 2021-09-19 13:55:36 -05:00
Gregg 09fec33f50 Update .DS_Store 2021-09-19 13:55:23 -05:00
Gregg 61a87ccc63 Clean up PWM - ready for testing
To do: Test RGB LED Examples with ESP32 and ESP32-S2 boards.

Next:  Re-work Remote Control routines to make compatible with S2 and C3
2021-09-19 13:53:20 -05:00
Gregg fdc3dfb474 Update .DS_Store 2021-09-19 13:40:50 -05:00
Gregg 0ccb1d34a0 More updates to PWM to ensure S2 and C3 compatibility
New IDF parameter in 2.0.0 for LEDC allows PWM signal to be inverted!  Need to ensure flags.output_inverted is set to 0!

Also:  Deleted old PWM class, which was saved for backwards compatibility.  This "breaks" HomeSpan for those using the old PWM class (instead of LedPin).

Also:  Added checks to ensure that frequency is achievable (for S2 and C3, the 14-bit duty resolution is insufficient to allow frequencies slower than 5 Hz - this is  not a practical limit when using LedPin to drive actual LEDs and lights).
2021-09-19 13:39:40 -05:00
HomeSpan 7255a9530f Updating Extras to work through S2 and C3 issues 2021-09-18 16:28:56 -05:00
Gregg 8b33f61464 Update src.ino 2021-09-18 13:59:36 -05:00
Gregg c67336ab57 Updated Blinker logic to support S2 and C3
Needed to set clk_src to APB, else default is XTAL, which is only 40MHz clock!
2021-09-18 06:35:41 -05:00
Gregg 014def4c66 Fixed compiler complaint about pow() function.
AND added 2.0.0 only variable - see LED_USE_APB_CLK.
2021-09-15 20:05:15 -05:00
Gregg 6c9bf39f54 Added PWM diagnostic messages and chip-specific maximum duty resolution 2021-09-14 21:09:58 -05:00
HomeSpan 7469ab8a93
Update Extras.md 2021-09-14 06:17:16 -05:00
Gregg 377e1d00c0 Merge branch 'dev' of https://github.com/HomeSpan/HomeSpan into dev 2021-09-13 06:02:38 -05:00
Gregg 3ea8f956a5 Converted initial level of LedPin from uint8_t to float 2021-09-13 06:02:20 -05:00
HomeSpan aeaca68bca
Update Extras.md 2021-09-13 06:01:31 -05:00
HomeSpan 98a5a895cc Update PwmPin.cpp
Tested new functionality on RGB LED.  Works well with using floating point precision.
2021-09-12 16:19:10 -05:00
HomeSpan 60cb20f132 Completed update to PWM code
Should now work with ESP32-S2 and C3.  Allows for as many LEDs and Servos as there are channels and timers across low and high (esp32 only) modes. Allows LED to be set with floating point precession instead of just uint8.  Allows specification of LED frequency for each LED (1-65535 Hz).  Automatically provides maximum duty resolution for frequency chosen.
2021-09-12 15:17:27 -05:00
HomeSpan 0a0c536b6d Starting work on ServoPin update 2021-09-12 12:31:08 -05:00
HomeSpan a5d31b1ea5 Re-working PWM routines 2021-09-12 09:23:29 -05:00
HomeSpan 8d45e20671 Update Utils.h 2021-09-06 21:29:13 -05:00
HomeSpan 6088fb16fe Added logic to Timer code to allow for compiling under S2 and C3
With these changes the code compiles but nothing has been tested yet to see if it actually works under S2 and C3!
2021-09-06 12:35:26 -05:00
HomeSpan edf5522ca0 Addresses compiler warnings in Arduino-ESP32 2.0.0 2021-09-05 20:39:37 -05:00
HomeSpan 28356c327a
Update Reference.md 2021-09-05 09:31:19 -05:00
HomeSpan 70ebb290da
Update Reference.md 2021-09-05 09:30:00 -05:00
HomeSpan 3d6bc0d095
Update Reference.md 2021-09-05 09:29:08 -05:00
Gregg 946819f3d4 updated setValidValues() to return pointer to self
Allows for chaining methods.
2021-09-05 09:14:21 -05:00
Gregg 6a74ce9283 Add setValidValues(int n, ...) method to Characteristic
Allows user to explicitly set the valid values for a Characteristic of type UINT8.  Throws an error if used with any other Characteristic type.
2021-09-05 08:54:34 -05:00
Gregg 2e9539a115 Fixed "space" bug in AP code
Fixed bug in which Access Point was not properly translating a '+' sign to a space when processing HTML forms.
2021-08-15 07:09:30 -05:00
Gregg 36499f35ab Added ESP32 chip type, revision, memory, etc. to initial output 2021-06-26 18:35:28 -05:00
HomeSpan e0c47f6a19
Update README.md 2021-06-22 21:16:50 -05:00
HomeSpan 8591b2575a
Update Categories.md 2021-06-22 21:15:38 -05:00
HomeSpan 91b0e14a08
Update ServiceList.md 2021-06-22 21:14:51 -05:00
HomeSpan c3ee31c782
Update Overview.md 2021-06-22 21:12:52 -05:00
HomeSpan 45bc72c296
Update GettingStarted.md 2021-06-22 21:11:36 -05:00
HomeSpan 85e00d51d1
Update README.md 2021-06-22 21:10:25 -05:00
HomeSpan a9685f73f0
Update README.md 2021-06-20 21:03:40 -05:00
HomeSpan 3f522a17d0
Update Reference.md 2021-06-20 20:48:53 -05:00
HomeSpan 2c9f99cc76
Update Extras.md 2021-06-20 18:17:35 -05:00
HomeSpan 5e8d8ed76f
Merge pull request #100 from HomeSpan/release-1.3.0
Release 1.3.0
2021-06-20 18:07:25 -05:00
HomeSpan 1ed7089a02
Update CLI.md 2021-06-20 18:04:59 -05:00
HomeSpan 910eedcecd
Update README.md 2021-06-20 16:22:07 -05:00
HomeSpan 25fdfe82ba
Update Reference.md 2021-06-20 15:53:07 -05:00
Gregg 2d36bb7a81 Update src.ino 2021-06-20 15:30:25 -05:00
Gregg 3eb718212d Merge branch 'dev' of https://github.com/HomeSpan/HomeSpan into dev 2021-06-20 15:20:59 -05:00
Gregg 6d77e2559a Added setApFunction(); simplified enableAutoStartAP()
Simplified enableAutoStartAP() so it no longer takes any arguments.  It now simply enables the auto launch of the WiFi Access Point at start-up if WiFi Credentials are not found.

New method setApFunction() will now be used to set an alternative method for the WiFi Access Point.  This will be called anytime 'A' is typed into the CLI, which also covers the auto-launch of the AP at start-up a well as starting it via the Control Button, since both of these functions call processCommand('A').
2021-06-20 15:20:56 -05:00
HomeSpan 9273304fde
Update Reference.md 2021-06-20 10:30:44 -05:00
HomeSpan 7b66f61fbf
Update Reference.md 2021-06-20 09:57:20 -05:00
HomeSpan fc01e37590 Created setWifiCredentials() method
To be used with user-define Access Point, but CAN be used to programmatically hardcode SSID and PASSWORD (not a good idea to do this!)
2021-06-20 06:37:09 -05:00
Gregg e3d081bb35 updated enableAutoStartAP to accept user-define function as argument 2021-06-19 21:36:18 -05:00
HomeSpan b53081dfc7
Update CLI.md 2021-06-19 08:39:55 -05:00