Skip to content

Commit f04d240

Browse files
committed
First commit
0 parents  commit f04d240

13 files changed

+1290
-0
lines changed

.gitignore

+70
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
# V.A.
2+
_tmp/
3+
tmp/
4+
*.diff
5+
*.err
6+
*.log
7+
*.orig
8+
*.rej
9+
*.swo
10+
*.swp
11+
picasa.ini
12+
Thumbs.db
13+
14+
# Editors / emacs
15+
.dir-locals.el
16+
*~
17+
.#*
18+
\#*#
19+
*.bak
20+
*.vi
21+
22+
# MacOS directory files
23+
.DS_Store/
24+
25+
# SCSS-Lint
26+
scss-lint-report.xml
27+
28+
# grunt-contrib-sass cache
29+
.sass-cache/
30+
31+
# Package Folders
32+
bower_components/
33+
node_modules/
34+
35+
# Eclipse CDT C C++ / OS
36+
.cache/
37+
.idea/
38+
.settings/
39+
.cproject
40+
.project
41+
.tmproj
42+
*.esproj
43+
44+
# GCC gcov coverage reports
45+
*.gcda
46+
*.gcno
47+
coverage.info
48+
coverage_report
49+
50+
# ESP-IDF
51+
.settings
52+
.config
53+
*.o
54+
*.pyc
55+
*.d
56+
*.old
57+
build/
58+
cmake-build-debug/
59+
test/xtensa-esp32-elf
60+
test/esp-idf
61+
test/build
62+
sdkconfig
63+
sdkconfig.old
64+
65+
# MJD Special
66+
*.ai
67+
deploy.cmd
68+
Aliexpress*.*
69+
Antratek*.*
70+
Banggood*.*

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2018 Nocluna
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

Makefile

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#
2+
# This is a project Makefile. It is assumed the directory this Makefile resides in is a
3+
# project subdirectory.
4+
#
5+
6+
PROJECT_NAME := ledc
7+
8+
include $(IDF_PATH)/make/project.mk
9+

README.md

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
## Project Description
2+
This example shows how to control the intensity of LEDs using the standard ESP-IDF LEDC driver (a LED Controller using PWM):
3+
- Frequency
4+
- Duty resolution
5+
- Duty cycle
6+
7+
Espressif Reference Documentation: https://esp-idf.readthedocs.io/en/latest/api-reference/peripherals/ledc.html
8+
9+
## FAQ
10+
- LEDC: the available duty resolution steps = (2 ^ bit_num bit_num of the duty resolution) - 1
11+
- LEDC: the maximal frequency is 80000000 / (2 ^ bit_num of the duty resolution)
12+
- https://physics.stackexchange.com/questions/19040/limit-of-human-eye-flicker-perception
13+
14+
## Hardware Setup
15+
- This setup uses a yellow LED with a Forward voltage of 2.0-2.2V. The resistor value of 100 Ohm is specific for the LED's forward voltage. If you use a LED with a higher Forward Voltage then you might have to lower the resistor value else the LED will not turn on.
16+
- Wire ESP32's GPIO_NUM_14 -> (+) 5mm yellow LED (-) -> Resistor 100 Ohm -> GND
17+
18+
## Running the example
19+
- Run `make flash monitor` to build and upload the example to your board and connect to its serial terminal.
20+
21+
22+
23+
## Reference: the ESP32 MJD Starter Kit SDK
24+
25+
Do you also want to create innovative IoT projects that use the ESP32 chip, or ESP32-based modules, of the popular company Espressif? Well, I did and still do. And I hope you do too.
26+
27+
The objective of this well documented Starter Kit is to accelerate the development of your IoT projects for ESP32 hardware using the ESP-IDF framework from Espressif and get inspired what kind of apps you can build for ESP32 using various hardware modules.
28+
29+
Go to https://github.com/pantaluna/esp32-mjd-starter-kit
30+

components/mjd/README.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# ESP32 MJD Component
2+
This is a component based on ESP-IDF for the ESP32 hardware from Espressif.
3+
4+
## Example ESP-IDF project
5+
mjd_components

components/mjd/component.mk

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#
2+
# Component Makefile
3+
#
4+
# This Makefile should, at the very least, just include $(SDK_PATH)/make/component.mk. By default,
5+
# this will take the sources in this directory, compile them and link them into
6+
# lib(subdirectory_name).a in the build directory. This behaviour is entirely configurable,
7+
# please read the SDK documents if you need to do this.
8+
#
9+
COMPONENT_SRCDIRS := .
10+
COMPONENT_ADD_INCLUDEDIRS := include
11+
COMPONENT_PRIV_INCLUDEDIRS :=

0 commit comments

Comments
 (0)