diff --git a/assets/img/authors/espressif.png b/assets/img/authors/espressif.png index 025dcb20..16c91921 100644 Binary files a/assets/img/authors/espressif.png and b/assets/img/authors/espressif.png differ diff --git a/content/authors/john-lee/_index.md b/content/authors/john-lee/_index.md new file mode 100644 index 00000000..fa026fc2 --- /dev/null +++ b/content/authors/john-lee/_index.md @@ -0,0 +1,3 @@ +--- +title: "John Lee" +--- diff --git a/content/blog/template/assets/espressif-ide.webp b/content/blog/template/assets/espressif-ide.webp new file mode 100644 index 00000000..86e816a6 Binary files /dev/null and b/content/blog/template/assets/espressif-ide.webp differ diff --git a/content/blog/template/featured.png b/content/blog/template/featured.png new file mode 100644 index 00000000..73388765 Binary files /dev/null and b/content/blog/template/featured.png differ diff --git a/content/blog/template/index.md b/content/blog/template/index.md new file mode 100644 index 00000000..b5739793 --- /dev/null +++ b/content/blog/template/index.md @@ -0,0 +1,154 @@ +--- +title: "Template for a blog post" +date: 2024-06-14 +draft: true +showAuthor: false +authors: + - "john-lee" + - "pedro-minatel" +tags: ["How to", "Hugo", "Template"] +categories: ["Tutorial"] +platforms: ["ESP-IDF"] +socs: ["ESP32-C6"] +--- + +## How to create a blog post on the Developer Portal + +[Please see the contribution guideline](../../pages/contribution-guide/content-writing-workflow) + +## You can do: + +Write your content in Markdown. + +Markdown is a lightweight markup language that you can use to add formatting elements to plaintext text documents. It was created by John Gruber and Aaron Swartz in 2004 to help people "write using an easy-to-read and easy-to-write plain text format, optionally convert it to structurally valid XHTML (or HTML)". + +### Add images + +Store all your images on inside the assets folder. + +![Espressif IDE](assets/espressif-ide.webp "Espressif IDE welcome screen") + +### Add code block + +{{< highlight c "linenos=table,hl_lines=">}} +#include +#include "led_strip.h" + +// 10MHz resolution, 1 tick = 0.1us (led strip needs a high resolution) +#define LED_STRIP_RMT_RES_HZ (10 * 1000 * 1000) + +led_strip_handle_t led_strip; + +void configure_led(void) +{ + // LED strip general initialization, according to your led board design + led_strip_config_t strip_config = { + // Set the GPIO that the LED is connected + .strip_gpio_num = 8, + // Set the number of connected LEDs in the strip + .max_leds = 1, + // Set the pixel format of your LED strip + .led_pixel_format = LED_PIXEL_FORMAT_GRB, + // LED strip model + .led_model = LED_MODEL_WS2812, + // In some cases, the logic is inverted + .flags.invert_out = false, + }; + + // LED strip backend configuration: RMT + led_strip_rmt_config_t rmt_config = { + // Set the clock source + .clk_src = RMT_CLK_SRC_DEFAULT, + // Set the RMT counter clock + .resolution_hz = LED_STRIP_RMT_RES_HZ, + // Set the DMA feature (not supported on the ESP32-C6) + .flags.with_dma = false, + }; + + // LED Strip object handle + led_strip_new_rmt_device(&strip_config, &rmt_config, &led_strip); +} + +void app_main(void) +{ + configure_led(); + led_strip_set_pixel(led_strip, 0, 20, 0, 0); + led_strip_refresh(led_strip); +} +{{< /highlight >}} + + +You can highlight some specific lines on your code: + +{{< highlight c "linenos=table,hl_lines=3 5 7 9 11" >}} + led_strip_config_t strip_config = { + // Set the GPIO8 that the LED is connected + .strip_gpio_num = 8, + // Set the number of connected LEDs, 1 + .max_leds = 1, + // Set the pixel format of your LED strip + .led_pixel_format = LED_PIXEL_FORMAT_GRB, + // LED model + .led_model = LED_MODEL_WS2812, + // In some cases, the logic is inverted + .flags.invert_out = false, + }; +{{< /highlight >}} + +### Add YouTube videos + +{{< youtube D86gQ4knUnc >}} + +### Add Asciinema + +[Please see the contribution guideline](../../pages/contribution-guide/asciinema-casts) + +### Flow Charts + +[Please see the contribution guideline](../../pages/contribution-guide/content-writing-workflow) + +### Timeline + +The following table shows ESP-IDF support of Espressif SoCs where alt text and alt text denote preview status and support, respectively. The preview support is usually limited in time and intended for beta versions of chips. Please use an ESP-IDF release where the desired SoC is already supported. + +{{< timeline >}} + +{{< timelineItem icon="github" header="ESP-IDF v4.4" badge="Service" subheader="Supported SoCs" >}} +{{< badge >}}ESP32{{< /badge >}} +{{< badge >}}ESP32-S2{{< /badge >}} +{{< badge >}}ESP32-C3{{< /badge >}} +{{< badge >}}ESP32-S3{{< /badge >}} +{{< /timelineItem >}} + +{{< timelineItem icon="github" header="ESP-IDF v5.0" badge="Service" subheader="Supported SoCs" >}} +{{< badge >}}ESP32-C2{{< /badge >}} +{{< /timelineItem >}} + +{{< timelineItem icon="github" header="ESP-IDF v5.1" badge="Service" subheader="Supported SoCs" >}} +{{< badge >}}ESP32-C6{{< /badge >}} +{{< badge >}}ESP32-H2{{< /badge >}} +{{< /timelineItem >}} + +{{< timelineItem icon="github" header="ESP-IDF v5.2" badge="Service" subheader="Supported SoCs" >}} +{{< badge >}}ESP32{{< /badge >}} +{{< badge >}}ESP32-S2{{< /badge >}} +{{< badge >}}ESP32-C3{{< /badge >}} +{{< badge >}}ESP32-S3{{< /badge >}} +{{< /timelineItem >}} + +{{< timelineItem icon="github" header="ESP-IDF v5.3" badge="Preview" subheader="Supported SoCs" >}} +{{< badge >}}ESP32-P4{{< /badge >}} +{{< badge >}}ESP32-C5{{< /badge >}} +{{< /timelineItem >}} + +{{< /timeline >}} + +### Links + +GitHub repository links + +{{< github repo="espressif/esp-idf" >}} + +### Extra + +Please see the [shortcodes](https://blowfish.page/docs/shortcodes/) for more features. diff --git a/data/authors/john-lee.json b/data/authors/john-lee.json new file mode 100644 index 00000000..b297feab --- /dev/null +++ b/data/authors/john-lee.json @@ -0,0 +1,9 @@ +{ + "name": "John Lee", + "image" : "img/authors/espressif.png", + "bio": "Espressif Systems", + "social": [ + { "twitter": "https://x.com/espressifsystem" }, + { "github": "https://github.com/espressif" } + ] +}