{"id":2482,"date":"2024-10-29T18:17:21","date_gmt":"2024-10-29T17:17:21","guid":{"rendered":"https:\/\/lesmrdtrucs.mataf35400.fr\/?page_id=2482"},"modified":"2024-11-03T18:48:39","modified_gmt":"2024-11-03T17:48:39","slug":"esp32-devkitv1-nodemcu-esp32-esp-wroom-32","status":"publish","type":"page","link":"https:\/\/lesmrdtrucs.mataf35400.fr\/index.php\/esp32-devkitv1-nodemcu-esp32-esp-wroom-32\/","title":{"rendered":"ESP32 DEVKITV1"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"2482\" class=\"elementor elementor-2482\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-9706da9 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"9706da9\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-43c7fad\" data-id=\"43c7fad\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-92935d0 elementor-widget elementor-widget-heading\" data-id=\"92935d0\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Exemple d'un afficheur SPI<\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-48f0a2a elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"48f0a2a\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-2cafeb4\" data-id=\"2cafeb4\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-a3238b3 elementor-widget elementor-widget-text-editor\" data-id=\"a3238b3\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p>Pour tester un afficheur OLED sur Home Assistant, j&rsquo;ai fait un petit programme qui affiche l&rsquo;\u00e9l\u00e9vation et l&rsquo;azimuth du soleil.<br \/>Pour cela, j&rsquo;ai pris un ESP32 DEVKITV1 et un afficheur OLED 1306 SPI<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-e6a2013 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"e6a2013\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-3e51ed8\" data-id=\"3e51ed8\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-33897ca elementor-widget elementor-widget-heading\" data-id=\"33897ca\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\"><div id=\"outer-wrap\" class=\"site clr\"><div id=\"wrap\" class=\"clr\"><main id=\"main\" class=\"site-main clr\" role=\"main\"><div id=\"content-wrap\" class=\"container clr\"><div id=\"primary\" class=\"content-area clr\"><div id=\"content\" class=\"site-content clr\"><article class=\"single-page-article clr\"><div class=\"entry clr\"><div data-elementor-type=\"wp-page\" data-elementor-id=\"2498\" class=\"elementor elementor-2498 elementor-edit-area elementor-edit-mode elementor-edit-area-active\" data-elementor-title=\"Page\"><div class=\"elementor-section-wrap ui-sortable\"><section data-id=\"c9144e9\" data-element_type=\"section\" data-model-cid=\"c78\" class=\"elementor-element elementor-element-edit-mode elementor-element-c9144e9 elementor-section elementor-top-section elementor-section-boxed elementor-section-height-default\"><div class=\"elementor-container elementor-column-gap-default ui-sortable\"><div data-id=\"279c3e1\" data-element_type=\"column\" data-model-cid=\"c79\" class=\"elementor-element elementor-element-edit-mode elementor-element-279c3e1 elementor-element--toggle-edit-tools elementor-column elementor-top-column ui-resizable\" data-col=\"100\"><div class=\"elementor-widget-wrap elementor-element-populated ui-sortable\"><div data-id=\"6a11a54\" data-element_type=\"widget\" data-model-cid=\"c80\" class=\"elementor-element elementor-element-edit-mode elementor-element-6a11a54 elementor-element--toggle-edit-tools elementor-widget elementor-widget-heading ui-resizable elementor-element-editable\" data-widget_type=\"heading.default\"><div class=\"elementor-widget-container\"><h2 class=\"elementor-heading-title elementor-size-default elementor-inline-editing pen\" data-elementor-setting-key=\"title\" data-pen-placeholder=\"\u00c9crivez ici...\"><h2 class=\"elementor-heading-title elementor-size-default elementor-inline-editing pen\" data-elementor-setting-key=\"title\" data-pen-placeholder=\"\u00c9crivez ici...\">C\u00e2blage pour l'utilisation<\/h2><\/h2><\/div><\/div><\/div><\/div><\/div><\/section><\/div><\/div><\/div><\/article><\/div><\/div><\/div><\/main><\/div><\/div><\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-5de9a1d elementor-widget elementor-widget-image\" data-id=\"5de9a1d\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<img fetchpriority=\"high\" decoding=\"async\" width=\"656\" height=\"578\" src=\"https:\/\/lesmrdtrucs.mataf35400.fr\/wp-content\/uploads\/2024\/10\/Image1.png\" class=\"attachment-large size-large wp-image-2489\" alt=\"\" srcset=\"https:\/\/lesmrdtrucs.mataf35400.fr\/wp-content\/uploads\/2024\/10\/Image1.png 656w, https:\/\/lesmrdtrucs.mataf35400.fr\/wp-content\/uploads\/2024\/10\/Image1-300x264.png 300w\" sizes=\"(max-width: 656px) 100vw, 656px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-6785f69 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"6785f69\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-ea6e139\" data-id=\"ea6e139\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-50cba3e elementor-widget elementor-widget-heading\" data-id=\"50cba3e\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Installation dans Home Assistant<\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-23f9446 elementor-widget elementor-widget-text-editor\" data-id=\"23f9446\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p>(Celle que j&rsquo;ai faite le 29\/10\/2024)<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-e93cc00 elementor-widget elementor-widget-text-editor\" data-id=\"e93cc00\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<ul><li>Tout d&rsquo;abord, copier la police \u00ab\u00a0<strong>BebasNeue-Regular.ttf<\/strong>\u00a0\u00bb dans le r\u00e9pertoire \u00ab\u00a0CONFIG\/esphome\/\u00a0\u00bb.<\/li><li>Ouvrir l\u2019onglet <b>ESPHome<\/b> dans Home Assistant.<\/li><li>Dans le cadre de l&rsquo;entit\u00e9 choisie, cliquer sur \u00ab\u00a0<strong>EDIT<\/strong>\u00ab\u00a0.<\/li><li>Ajouter le programme suivant \u00e0 la fin du \u00ab\u00a0de base\u00a0\u00bb (apr\u00e8s \u00ab\u00a0<strong>captive_portal:<\/strong>\u00ab\u00a0).<\/li><li>Cliquer sur \u00ab\u00a0SAVE\u00a0\u00bb, puis sur \u00ab\u00a0INSTALL\u00a0\u00bb.<\/li><li>Dans la fen\u00eatre qui s&rsquo;ouvre, choisir \u00ab\u00a0Wirelessly\u00a0\u00bb.<\/li><li>Si tout va bien, cela doit fonctionner !!!<\/li><\/ul>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-768a76b elementor-widget elementor-widget-heading\" data-id=\"768a76b\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Le programme final apr\u00e8s ajout de la partie sp\u00e9cifique<\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-c980848 elementor-widget elementor-widget-text-editor\" data-id=\"c980848\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div style=\"color: #000000; background-color: #fffffe; font-family: ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,'Liberation Mono','Courier New',monospace, Consolas, 'Courier New', monospace; font-weight: normal; font-size: 14px; line-height: 19px; white-space: pre;\"><div><span style=\"color: #333333;\"># Example configuration entry<\/span><\/div><div><span style=\"color: #333333;\">spi:<\/span><\/div><div><span style=\"color: #333333;\">\u00a0 clk_pin: GPIO18<\/span><\/div><div><span style=\"color: #333333;\">\u00a0 mosi_pin: GPIO23<\/span><\/div><div><span style=\"color: #333333;\">font:<\/span><\/div><div><span style=\"color: #333333;\">\u00a0 &#8211; file: \u00ab\u00a0gfonts:\/\/Roboto\u00a0\u00bb<\/span><\/div><div><span style=\"color: #333333;\">\u00a0 \u00a0 id: roboto_20<\/span><\/div><div><span style=\"color: #333333;\">\u00a0 \u00a0 size: 20<\/span><\/div><div><span style=\"color: #333333;\">\u00a0 &#8211; file: \u00ab\u00a0gfonts:\/\/Roboto\u00a0\u00bb<\/span><\/div><div><span style=\"color: #333333;\">\u00a0 \u00a0 id: roboto_30<\/span><\/div><div><span style=\"color: #333333;\">\u00a0 \u00a0 size: 30<\/span><\/div><div><span style=\"color: #333333;\">sensor:<\/span><\/div><div><span style=\"color: #333333;\">\u00a0 &#8211; platform: homeassistant<\/span><\/div><div><span style=\"color: #333333;\">\u00a0 \u00a0 id: Elevation<\/span><\/div><div><span style=\"color: #333333;\">\u00a0 \u00a0 entity_id: sun.sun<\/span><\/div><div><span style=\"color: #333333;\">\u00a0 \u00a0 attribute: elevation<\/span><\/div><div><span style=\"color: #333333;\">\u00a0 &#8211; platform: homeassistant<\/span><\/div><div><span style=\"color: #333333;\">\u00a0 \u00a0 id: Azimuth<\/span><\/div><div><span style=\"color: #333333;\">\u00a0 \u00a0 entity_id: sun.sun<\/span><\/div><div><span style=\"color: #333333;\">\u00a0 \u00a0 attribute: azimuth<\/span><\/div><div><span style=\"color: #333333;\">\u00a0 \u00a0 <\/span><\/div><div><span style=\"color: #333333;\">display:<\/span><\/div><div><span style=\"color: #333333;\">\u00a0 &#8211; platform: ssd1306_spi<\/span><\/div><div><span style=\"color: #333333;\">\u00a0 \u00a0 model: \u00ab\u00a0SSD1306 128&#215;64\u00a0\u00bb<\/span><\/div><div><span style=\"color: #333333;\">\u00a0 \u00a0 update_interval: 10s<\/span><\/div><div><span style=\"color: #333333;\">\u00a0 \u00a0 cs_pin: GPIO5<\/span><\/div><div><span style=\"color: #333333;\">\u00a0 \u00a0 dc_pin: GPIO4<\/span><\/div><div><span style=\"color: #333333;\">\u00a0 \u00a0 reset_pin: GPIO22<\/span><\/div><div><span style=\"color: #333333;\">\u00a0 \u00a0 lambda: |-<\/span><\/div><div><span style=\"color: #333333;\">\u00a0 \u00a0 \u00a0 it.print(0, 7, id(roboto_20), \u00ab\u00a0Elev.\u00a0\u00bb);<\/span><\/div><div><span style=\"color: #333333;\">\u00a0 \u00a0 \u00a0 it.print(0, 43, id(roboto_20), \u00ab\u00a0Azim.\u00a0\u00bb);<\/span><\/div><div><span style=\"color: #333333;\">\u00a0 \u00a0 \u00a0 it.printf(it.get_width(), 0, id(roboto_30), TextAlign::TOP_RIGHT, \u00ab\u00a0%.1f\u00b0\u00a0\u00bb, id(Elevation).state);<\/span><\/div><div><span style=\"color: #333333;\">\u00a0 \u00a0 \u00a0 it.printf(it.get_width(), 36, id(roboto_30), TextAlign::TOP_RIGHT, \u00ab\u00a0%.0f\u00b0\u00a0\u00bb, id(Azimuth).state);<\/span><\/div><\/div>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Exemple d&rsquo;un afficheur SPI Pour tester un afficheur OLED sur Home Assistant, j&rsquo;ai fait un petit programme qui affiche l&rsquo;\u00e9l\u00e9vation et l&rsquo;azimuth du soleil.Pour cela, j&rsquo;ai pris un ESP32 DEVKITV1 et un afficheur OLED 1306 SPI C\u00e2blage pour l&rsquo;utilisation Installation dans Home Assistant (Celle que j&rsquo;ai faite le 29\/10\/2024) Tout d&rsquo;abord, copier la police \u00ab\u00a0BebasNeue-Regular.ttf\u00a0\u00bb [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"ocean_post_layout":"","ocean_both_sidebars_style":"","ocean_both_sidebars_content_width":0,"ocean_both_sidebars_sidebars_width":0,"ocean_sidebar":"","ocean_second_sidebar":"","ocean_disable_margins":"enable","ocean_add_body_class":"","ocean_shortcode_before_top_bar":"","ocean_shortcode_after_top_bar":"","ocean_shortcode_before_header":"","ocean_shortcode_after_header":"","ocean_has_shortcode":"","ocean_shortcode_after_title":"","ocean_shortcode_before_footer_widgets":"","ocean_shortcode_after_footer_widgets":"","ocean_shortcode_before_footer_bottom":"","ocean_shortcode_after_footer_bottom":"","ocean_display_top_bar":"default","ocean_display_header":"default","ocean_header_style":"","ocean_center_header_left_menu":"","ocean_custom_header_template":"","ocean_custom_logo":0,"ocean_custom_retina_logo":0,"ocean_custom_logo_max_width":0,"ocean_custom_logo_tablet_max_width":0,"ocean_custom_logo_mobile_max_width":0,"ocean_custom_logo_max_height":0,"ocean_custom_logo_tablet_max_height":0,"ocean_custom_logo_mobile_max_height":0,"ocean_header_custom_menu":"","ocean_menu_typo_font_family":"","ocean_menu_typo_font_subset":"","ocean_menu_typo_font_size":0,"ocean_menu_typo_font_size_tablet":0,"ocean_menu_typo_font_size_mobile":0,"ocean_menu_typo_font_size_unit":"px","ocean_menu_typo_font_weight":"","ocean_menu_typo_font_weight_tablet":"","ocean_menu_typo_font_weight_mobile":"","ocean_menu_typo_transform":"","ocean_menu_typo_transform_tablet":"","ocean_menu_typo_transform_mobile":"","ocean_menu_typo_line_height":0,"ocean_menu_typo_line_height_tablet":0,"ocean_menu_typo_line_height_mobile":0,"ocean_menu_typo_line_height_unit":"","ocean_menu_typo_spacing":0,"ocean_menu_typo_spacing_tablet":0,"ocean_menu_typo_spacing_mobile":0,"ocean_menu_typo_spacing_unit":"","ocean_menu_link_color":"","ocean_menu_link_color_hover":"","ocean_menu_link_color_active":"","ocean_menu_link_background":"","ocean_menu_link_hover_background":"","ocean_menu_link_active_background":"","ocean_menu_social_links_bg":"","ocean_menu_social_hover_links_bg":"","ocean_menu_social_links_color":"","ocean_menu_social_hover_links_color":"","ocean_disable_title":"default","ocean_disable_heading":"default","ocean_post_title":"","ocean_post_subheading":"","ocean_post_title_style":"","ocean_post_title_background_color":"","ocean_post_title_background":0,"ocean_post_title_bg_image_position":"","ocean_post_title_bg_image_attachment":"","ocean_post_title_bg_image_repeat":"","ocean_post_title_bg_image_size":"","ocean_post_title_height":0,"ocean_post_title_bg_overlay":0.5,"ocean_post_title_bg_overlay_color":"","ocean_disable_breadcrumbs":"default","ocean_breadcrumbs_color":"","ocean_breadcrumbs_separator_color":"","ocean_breadcrumbs_links_color":"","ocean_breadcrumbs_links_hover_color":"","ocean_display_footer_widgets":"default","ocean_display_footer_bottom":"default","ocean_custom_footer_template":"","footnotes":""},"class_list":["post-2482","page","type-page","status-publish","hentry","entry"],"_links":{"self":[{"href":"https:\/\/lesmrdtrucs.mataf35400.fr\/index.php\/wp-json\/wp\/v2\/pages\/2482","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lesmrdtrucs.mataf35400.fr\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/lesmrdtrucs.mataf35400.fr\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/lesmrdtrucs.mataf35400.fr\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lesmrdtrucs.mataf35400.fr\/index.php\/wp-json\/wp\/v2\/comments?post=2482"}],"version-history":[{"count":11,"href":"https:\/\/lesmrdtrucs.mataf35400.fr\/index.php\/wp-json\/wp\/v2\/pages\/2482\/revisions"}],"predecessor-version":[{"id":2556,"href":"https:\/\/lesmrdtrucs.mataf35400.fr\/index.php\/wp-json\/wp\/v2\/pages\/2482\/revisions\/2556"}],"wp:attachment":[{"href":"https:\/\/lesmrdtrucs.mataf35400.fr\/index.php\/wp-json\/wp\/v2\/media?parent=2482"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}