Skip to content

Commit db04dd0

Browse files
committed
Updated
1 parent 3212925 commit db04dd0

File tree

5 files changed

+36
-13
lines changed

5 files changed

+36
-13
lines changed

README.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,33 @@ This example shows how to control the intensity of LEDs using the standard ESP-I
66

77
Espressif Reference Documentation: https://esp-idf.readthedocs.io/en/latest/api-reference/peripherals/ledc.html
88

9+
10+
11+
## What are the HW SW requirements of the ESP32 MJD Starter Kit?
12+
13+
### Hardware
14+
15+
- A decent ESP development board. I suggest to buy a popular development board with good technical documentation and a significant user base. Examples: [Adafruit HUZZAH32](https://www.adafruit.com/product/3405), [Espressif ESP32-DevKitC](http://espressif.com/en/products/hardware/esp32-devkitc/overview), [Pycom WiPy](https://pycom.io/hardware/), [Wemos D32](https://wiki.wemos.cc/products:d32:d32).
16+
- The peripherals that are used in the project.
17+
@tip The README of each component contains a section "Shop Products".
18+
@example A Bosch BME280 meteo sensor breakout board.
19+
20+
### Software: ESP-IDF v3.2
21+
22+
- A working installation of the **Espressif ESP-IDF *V3.2* development framework**** (detailed instructions @ http://esp-idf.readthedocs.io/en/latest/get-started/index.html).
23+
24+
```
25+
mkdir ~/esp
26+
cd ~/esp
27+
git clone -b v3.3 --recursive https://github.com/espressif/esp-idf.git esp-idf-v3.2
28+
```
29+
30+
- A C language editor or the Eclipse IDE CDT (instructions also @ http://esp-idf.readthedocs.io/en/latest/get-started/index.html).
31+
32+
33+
934
## FAQ
35+
1036
- LEDC: the available duty resolution steps = (2 ^ bit_num bit_num of the duty resolution) - 1
1137
- LEDC: the maximal frequency is 80000000 / (2 ^ bit_num of the duty resolution)
1238
- https://physics.stackexchange.com/questions/19040/limit-of-human-eye-flicker-perception

components/mjd/README.md

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,14 @@
11
# ESP32 MJD Component
2-
This is a component based on ESP-IDF for the ESP32 hardware from Espressif.
3-
4-
2+
This is a component based on ESP-IDF for the ESP32 hardware from Espressif.
53

64
It is the base component of the MJD Starter Kit which contains general purpose functions.
75

8-
9-
106
## Example ESP-IDF project
117
esp32_mjd_components
128

13-
14-
159
## Reference: the ESP32 MJD Starter Kit SDK
16-
1710
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.
1811

1912
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.
2013

2114
Go to https://github.com/pantaluna/esp32-mjd-starter-kit
22-

components/mjd/include/mjd.h

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,13 @@ extern "C" {
9595
int mjd_compare_ints(const void * a, const void * b);
9696

9797
/**********
98-
* BYTES and BINARY REPRESENTATION
98+
* BYTES/WORDS and BINARY REPRESENTATION
9999
*/
100+
#define MJD_HIBYTE(x) ((uint8_t)((uint16_t)(x) >> 8))
101+
#define MJD_LOBYTE(x) ((uint8_t)(x))
102+
#define MJD_HIWORD(x) ((uint16_t)((uint32_t)(x) >> 16))
103+
#define MJD_LOWORD(x) ((uint16_t)((uint32_t)(x)))
104+
100105
uint8_t mjd_byte_to_bcd(uint8_t val);
101106
uint8_t mjd_bcd_to_byte(uint8_t val);
102107
esp_err_t mjd_byte_to_binary_string(uint8_t input_byte, char * output_string);

components/mjd/mjd.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -366,8 +366,8 @@ void mjd_log_clanguage_details() {
366366

367367
ESP_LOGI(TAG, " float");
368368
ESP_LOGI(TAG, " Storage size (bytes): %d", sizeof(float));
369-
ESP_LOGI(TAG, " FLT_MIN positive value: %E", FLT_MIN);
370-
ESP_LOGI(TAG, " FLT_MAX maximum positive value: %E", FLT_MAX);
369+
ESP_LOGI(TAG, " FLT_MIN Minimum normalized positive floating-point value: %E", FLT_MIN);
370+
ESP_LOGI(TAG, " FLT_MAX Maximum representable finite floating-point value: %E", FLT_MAX);
371371
ESP_LOGI(TAG, " FLT_DIG precision value: %d", FLT_DIG);
372372

373373
ESP_LOGI(TAG, " size_t");

github-commands.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ git commit -m "Updated"
4343
git config credential.helper store
4444
git push --set-upstream origin master
4545

46-
git tag --annotate v0.82 --message "Second tag"
46+
git tag --annotate v1.3 --message "Upgraded for ESP-IDF v3.2 of April 2019"
4747
git push origin --tags
4848

4949
git describe --tags --dirt

0 commit comments

Comments
 (0)