{"id":587,"date":"2024-06-22T13:33:54","date_gmt":"2024-06-22T13:33:54","guid":{"rendered":"https:\/\/iotthinghub.com\/?p=587"},"modified":"2024-08-10T18:00:47","modified_gmt":"2024-08-10T18:00:47","slug":"7-segment-display","status":"publish","type":"post","link":"https:\/\/iotthinghub.com\/?p=587","title":{"rendered":"7 Segment Display"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"587\" class=\"elementor elementor-587\">\n\t\t\t\t<div class=\"elementor-element elementor-element-54ca0cb e-flex e-con-boxed e-con e-parent\" data-id=\"54ca0cb\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-d9300d7 elementor-widget elementor-widget-text-editor\" data-id=\"d9300d7\" data-element_type=\"widget\" data-e-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\t\t<p>Seven Segment display are of two types<\/p><ol><li><h6><strong>Common Cathode<\/strong><\/h6><\/li><li><h6><strong>Common Anode<\/strong><\/h6><\/li><\/ol><p><strong>Common Cathode:- <\/strong>In the common cathode type 7 segment displays, the \u2013Ve terminal of all LEDs is connected to the COM pin. A 7 segment can be lightening up when +5v is given to the respective LED segment and ground connected to common.<\/p><p><strong>Common Anode:- <\/strong>In the common cathode type 7 segment the +5v terminal of all the LEDs is commonly connected to the common port of the 7 segment. A seven segment can be lighten up when the COM port is connected to the +5v battery supply and ground is given to respective LED segment.<\/p><p><img fetchpriority=\"high\" decoding=\"async\" class=\"aligncenter wp-image-592 size-full\" src=\"https:\/\/iotthinghub.com\/wp-content\/uploads\/2024\/06\/connection.png\" alt=\"\" width=\"590\" height=\"263\" srcset=\"https:\/\/iotthinghub.com\/wp-content\/uploads\/2024\/06\/connection.png 590w, https:\/\/iotthinghub.com\/wp-content\/uploads\/2024\/06\/connection-300x134.png 300w\" sizes=\"(max-width: 590px) 100vw, 590px\" \/><\/p><p><img decoding=\"async\" class=\"aligncenter wp-image-599 size-large\" src=\"https:\/\/iotthinghub.com\/wp-content\/uploads\/2024\/06\/ssd-1024x367.jpg\" alt=\"\" width=\"640\" height=\"229\" srcset=\"https:\/\/iotthinghub.com\/wp-content\/uploads\/2024\/06\/ssd-1024x367.jpg 1024w, https:\/\/iotthinghub.com\/wp-content\/uploads\/2024\/06\/ssd-300x107.jpg 300w, https:\/\/iotthinghub.com\/wp-content\/uploads\/2024\/06\/ssd-768x275.jpg 768w, https:\/\/iotthinghub.com\/wp-content\/uploads\/2024\/06\/ssd.jpg 1231w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/><\/p><p><img decoding=\"async\" class=\"alignleft wp-image-603\" src=\"https:\/\/iotthinghub.com\/wp-content\/uploads\/2024\/06\/c-structure-1.jpg\" alt=\"\" width=\"200\" height=\"37\" srcset=\"https:\/\/iotthinghub.com\/wp-content\/uploads\/2024\/06\/c-structure-1.jpg 284w, https:\/\/iotthinghub.com\/wp-content\/uploads\/2024\/06\/c-structure-1-272x52.jpg 272w\" sizes=\"(max-width: 200px) 100vw, 200px\" \/><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-f345e48 elementor-widget elementor-widget-text-editor\" data-id=\"f345e48\" data-element_type=\"widget\" data-e-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\t\t<p>In this section we only discuss about <strong>user-defined function<\/strong> and <strong>switch<\/strong> statement.<\/p><p>C functions can be classified into two categories, namely, library functions and user-defined function. In order to make use of a user defined function, we need to establish three elements that are related to functions.<\/p><ol><li>Function definition<\/li><li>Function call<\/li><li>Function declaration<\/li><\/ol><p>The format is<\/p><h6>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <strong>Function declaration<\/strong><\/h6><h6><strong>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 int main(void)<\/strong><\/h6><h6><strong>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 {<\/strong><\/h6><h6><strong>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0function call;<\/strong><\/h6><h6><strong>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 return 0;<\/strong><\/h6><h6><strong>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0}<\/strong><\/h6><h6><strong>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 Function definition<\/strong><\/h6><p>Note that function definition does not terminate with a semicolon.<\/p><p>Function definition<strong> (Formation)<\/strong><\/p><h6><strong>function_type function_name(parameter list)<\/strong><\/h6><h6><strong>\u00a0 \u00a0 \u00a0 {<\/strong><\/h6><h6><strong>\u00a0 \u00a0 \u00a0 \u00a0local variable declarations;<\/strong><\/h6><h6><strong>\u00a0 \u00a0 \u00a0 executable ststement;<\/strong><\/h6><h6><strong>\u00a0 \u00a0 \u00a0 &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/strong><\/h6><h6><strong>\u00a0 \u00a0 \u00a0 \u00a0return (Value)<\/strong><\/h6><h6><strong>\u00a0 \u00a0 \u00a0}<\/strong><\/h6><p>Here function name may be any name you give, data type may be int, or float, or char\u2026etc. and parameter list may be (int m,n,float name,char lift);<\/p><p>Function declaration<strong> (Formation)<\/strong><\/p><h6>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <strong>function_type function_name(parameter list);<\/strong><\/h6><p>Function call<strong> (Formation)<\/strong><\/p><h6>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <strong>data_type= function_name(return_data_type);<\/strong><\/h6>\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\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-023b430 e-flex e-con-boxed e-con e-parent\" data-id=\"023b430\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-4b6399a elementor-widget elementor-widget-text-editor\" data-id=\"4b6399a\" data-element_type=\"widget\" data-e-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\t\t<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-617\" src=\"https:\/\/iotthinghub.com\/wp-content\/uploads\/2024\/06\/return-function-1-300x79.jpg\" alt=\"\" width=\"801\" height=\"211\" srcset=\"https:\/\/iotthinghub.com\/wp-content\/uploads\/2024\/06\/return-function-1-300x79.jpg 300w, https:\/\/iotthinghub.com\/wp-content\/uploads\/2024\/06\/return-function-1-1024x270.jpg 1024w, https:\/\/iotthinghub.com\/wp-content\/uploads\/2024\/06\/return-function-1-768x202.jpg 768w, https:\/\/iotthinghub.com\/wp-content\/uploads\/2024\/06\/return-function-1.jpg 1390w\" sizes=\"(max-width: 801px) 100vw, 801px\" \/><\/p><p><strong>Switch:-\u00a0 <\/strong>It is a conditional expression that check the resultant value compare with a set of value and give an appropriate result corresponding to that value.<\/p><p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <strong>Formation<\/strong><\/p><h6>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 switch(expression)<\/h6><h6>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 {<\/h6><h6>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 case value-1:block 1;<\/h6><h6>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 break;<\/h6><h6>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 case value-2:block 2;<\/h6><h6>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 break;<\/h6><h6>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 case value-3:block 3;<\/h6><h6>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0break;<\/h6><h6>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/h6><h6>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0default:<\/h6><h6>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0default \u2013block;<\/h6><h6>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0break;<\/h6><h6>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0}<\/h6><h6><strong>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 statement \u2013x;<\/strong><\/h6><p>Let make our own seven segment display header file with the help of this switch function. Let choose a cathode LED and our user defined function should be an integer argument and integer return function. So that in user-defined function will be<\/p><h6>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <strong>int seven_segment(int value);\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0&#8212;&#8212;-&gt; Function declaration<\/strong><\/h6><h6><strong>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 int digit=seven_segment(digit you desire); \u00a0\u00a0&#8212;&#8212;-&gt; Function Call<\/strong><\/h6><h6><strong>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 int seven_segment(int value)\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0&#8212;&#8212;-&gt; Function Definition<\/strong><\/h6><p><strong>\u00a0<\/strong><\/p><p>Let separate the total user-defined function to three part. Make two new file and save as in the same folder where the main.c file saved and named it -&gt; segment.c and segment.h. Our main goal is to separate the user-defined function and each part should include<\/p><h6>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <span style=\"color: #008000;\">main.c file<\/span>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 &#8212;&#8212;&#8212;&#8212;&#8212;&#8211;&gt; <strong>Function call<\/strong><\/h6><h6>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <span style=\"color: #008000;\">segment.c file<\/span>\u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;&gt; <strong>Function definition<\/strong><\/h6><h6>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <span style=\"color: #008000;\">segment.h file<\/span>\u00a0\u00a0 \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;&gt; <strong>Function declaration<\/strong><\/h6>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-d06ad00 elementor-widget elementor-widget-text-editor\" data-id=\"d06ad00\" data-element_type=\"widget\" data-e-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\t\t<p><img loading=\"lazy\" decoding=\"async\" class=\"alignleft wp-image-627\" src=\"https:\/\/iotthinghub.com\/wp-content\/uploads\/2024\/06\/Function-ssd-300x21.jpg\" alt=\"\" width=\"280\" height=\"19\" srcset=\"https:\/\/iotthinghub.com\/wp-content\/uploads\/2024\/06\/Function-ssd-300x21.jpg 300w, https:\/\/iotthinghub.com\/wp-content\/uploads\/2024\/06\/Function-ssd.jpg 665w\" sizes=\"(max-width: 280px) 100vw, 280px\" \/><\/p><p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-631\" src=\"https:\/\/iotthinghub.com\/wp-content\/uploads\/2024\/06\/ssd-program.jpg\" alt=\"\" width=\"500\" height=\"666\" srcset=\"https:\/\/iotthinghub.com\/wp-content\/uploads\/2024\/06\/ssd-program.jpg 633w, https:\/\/iotthinghub.com\/wp-content\/uploads\/2024\/06\/ssd-program-225x300.jpg 225w\" sizes=\"(max-width: 500px) 100vw, 500px\" \/><\/p><p>Here interesting thing that in <span style=\"color: #131a38;\">segment.c\u00a0<\/span> file we include <span style=\"color: #131a38;\">segment.h<\/span> file because we store function declaration in <span style=\"color: #131a38;\">segment.h<\/span> \u00a0file.<\/p><p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-647 size-full\" src=\"https:\/\/iotthinghub.com\/wp-content\/uploads\/2024\/06\/header-SSD.jpg\" alt=\"\" width=\"1357\" height=\"103\" srcset=\"https:\/\/iotthinghub.com\/wp-content\/uploads\/2024\/06\/header-SSD.jpg 1357w, https:\/\/iotthinghub.com\/wp-content\/uploads\/2024\/06\/header-SSD-300x23.jpg 300w, https:\/\/iotthinghub.com\/wp-content\/uploads\/2024\/06\/header-SSD-1024x78.jpg 1024w, https:\/\/iotthinghub.com\/wp-content\/uploads\/2024\/06\/header-SSD-768x58.jpg 768w\" sizes=\"(max-width: 1357px) 100vw, 1357px\" \/><\/p><p>Now our main.c file is very simple. In this program we display 0-9 in 7 segment and the process repeat.<\/p>\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\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-4da6f9a e-grid e-con-boxed e-con e-parent\" data-id=\"4da6f9a\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-ff6250d elementor-widget elementor-widget-image\" data-id=\"ff6250d\" data-element_type=\"widget\" data-e-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\t\t<img loading=\"lazy\" decoding=\"async\" width=\"1257\" height=\"700\" src=\"https:\/\/iotthinghub.com\/wp-content\/uploads\/2024\/06\/main-program-1.jpg\" class=\"attachment-full size-full wp-image-657\" alt=\"\" srcset=\"https:\/\/iotthinghub.com\/wp-content\/uploads\/2024\/06\/main-program-1.jpg 1257w, https:\/\/iotthinghub.com\/wp-content\/uploads\/2024\/06\/main-program-1-300x167.jpg 300w, https:\/\/iotthinghub.com\/wp-content\/uploads\/2024\/06\/main-program-1-1024x570.jpg 1024w, https:\/\/iotthinghub.com\/wp-content\/uploads\/2024\/06\/main-program-1-768x428.jpg 768w\" sizes=\"(max-width: 1257px) 100vw, 1257px\" \/>\t\t\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<div class=\"elementor-element elementor-element-534ab07 elementor-widget elementor-widget-video\" data-id=\"534ab07\" data-element_type=\"widget\" data-e-type=\"widget\" data-settings=\"{&quot;youtube_url&quot;:&quot;https:\\\/\\\/www.youtube.com\\\/watch?v=gTaVepk9V6Y&amp;ab_channel=EMPETA&quot;,&quot;video_type&quot;:&quot;youtube&quot;,&quot;controls&quot;:&quot;yes&quot;}\" data-widget_type=\"video.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-wrapper elementor-open-inline\">\n\t\t\t<div class=\"elementor-video\"><\/div>\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-9afd0d0 e-grid e-con-boxed e-con e-parent\" data-id=\"9afd0d0\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-f4fc2ab elementor-widget elementor-widget-text-editor\" data-id=\"f4fc2ab\" data-element_type=\"widget\" data-e-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\t\t<p>In AVR IDE platform to integrate all three file we need some change in WinAVR and Microchip Stdio. In WinAVR just change in <span style=\"color: #003300;\">MFile\u00a0 -&gt;<\/span><\/p><p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-662\" src=\"https:\/\/iotthinghub.com\/wp-content\/uploads\/2024\/06\/winrar-change-300x103.jpg\" alt=\"\" width=\"801\" height=\"276\" srcset=\"https:\/\/iotthinghub.com\/wp-content\/uploads\/2024\/06\/winrar-change-300x103.jpg 300w, https:\/\/iotthinghub.com\/wp-content\/uploads\/2024\/06\/winrar-change-1024x352.jpg 1024w, https:\/\/iotthinghub.com\/wp-content\/uploads\/2024\/06\/winrar-change-768x264.jpg 768w, https:\/\/iotthinghub.com\/wp-content\/uploads\/2024\/06\/winrar-change.jpg 1343w\" sizes=\"(max-width: 801px) 100vw, 801px\" \/><\/p><p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-673\" src=\"https:\/\/iotthinghub.com\/wp-content\/uploads\/2024\/06\/AVR-Stdio-1-300x40.jpg\" alt=\"\" width=\"801\" height=\"108\" srcset=\"https:\/\/iotthinghub.com\/wp-content\/uploads\/2024\/06\/AVR-Stdio-1-300x40.jpg 300w, https:\/\/iotthinghub.com\/wp-content\/uploads\/2024\/06\/AVR-Stdio-1-1024x138.jpg 1024w, https:\/\/iotthinghub.com\/wp-content\/uploads\/2024\/06\/AVR-Stdio-1-768x103.jpg 768w, https:\/\/iotthinghub.com\/wp-content\/uploads\/2024\/06\/AVR-Stdio-1.jpg 1382w\" sizes=\"(max-width: 801px) 100vw, 801px\" \/><\/p><p>One interesting about that in WinAVR the F_CPU=8MHz and Microchip Studio F_CPU=1MHz by default.<\/p>\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\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-8f1f402 e-flex e-con-boxed e-con e-parent\" data-id=\"8f1f402\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t<div class=\"elementor-element elementor-element-f676273 e-con-full e-flex e-con e-child\" data-id=\"f676273\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t<div class=\"elementor-element elementor-element-244e4f3 elementor-align-center elementor-widget elementor-widget-button\" data-id=\"244e4f3\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"button.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<div class=\"elementor-button-wrapper\">\n\t\t\t\t\t<a class=\"elementor-button elementor-button-link elementor-size-sm\" href=\"https:\/\/iotthinghub.com\/wp-content\/uploads\/2024\/08\/2.-7-Segment-Display.rar\" target=\"_blank\">\n\t\t\t\t\t\t<span class=\"elementor-button-content-wrapper\">\n\t\t\t\t\t\t<span class=\"elementor-button-icon\">\n\t\t\t\t<svg aria-hidden=\"true\" class=\"e-font-icon-svg e-far-file-archive\" viewBox=\"0 0 384 512\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"><path d=\"M128.3 160v32h32v-32zm64-96h-32v32h32zm-64 32v32h32V96zm64 32h-32v32h32zm177.6-30.1L286 14C277 5 264.8-.1 252.1-.1H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V131.9c0-12.7-5.1-25-14.1-34zM256 51.9l76.1 76.1H256zM336 464H48V48h79.7v16h32V48H208v104c0 13.3 10.7 24 24 24h104zM194.2 265.7c-1.1-5.6-6-9.7-11.8-9.7h-22.1v-32h-32v32l-19.7 97.1C102 385.6 126.8 416 160 416c33.1 0 57.9-30.2 51.5-62.6zm-33.9 124.4c-17.9 0-32.4-12.1-32.4-27s14.5-27 32.4-27 32.4 12.1 32.4 27-14.5 27-32.4 27zm32-198.1h-32v32h32z\"><\/path><\/svg>\t\t\t<\/span>\n\t\t\t\t\t\t\t\t\t<span class=\"elementor-button-text\">download<\/span>\n\t\t\t\t\t<\/span>\n\t\t\t\t\t<\/a>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-2a54b8a e-con-full e-flex e-con e-child\" data-id=\"2a54b8a\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t<div class=\"elementor-element elementor-element-0f58c41 elementor-widget elementor-widget-heading\" data-id=\"0f58c41\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h4 class=\"elementor-heading-title elementor-size-default\"><a href=\"https:\/\/iotthinghub.com\/wp-content\/uploads\/2024\/08\/2.-7-Segment-Display.rar\" target=\"_blank\">Download the full program with proteus simulation<\/a><\/h4>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Seven Segment display are of two types Common Cathode Common Anode Common Cathode:- In the common cathode type 7 segment displays, the \u2013Ve terminal of all LEDs is connected to the COM pin. A 7 segment can be lightening up when +5v is given to the respective LED segment and ground connected to common. Common [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,9],"tags":[],"class_list":["post-587","post","type-post","status-publish","format-standard","hentry","category-basic-phepharials","category-i-o-port-operations"],"_links":{"self":[{"href":"https:\/\/iotthinghub.com\/index.php?rest_route=\/wp\/v2\/posts\/587","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/iotthinghub.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/iotthinghub.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/iotthinghub.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/iotthinghub.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=587"}],"version-history":[{"count":85,"href":"https:\/\/iotthinghub.com\/index.php?rest_route=\/wp\/v2\/posts\/587\/revisions"}],"predecessor-version":[{"id":2532,"href":"https:\/\/iotthinghub.com\/index.php?rest_route=\/wp\/v2\/posts\/587\/revisions\/2532"}],"wp:attachment":[{"href":"https:\/\/iotthinghub.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=587"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/iotthinghub.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=587"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/iotthinghub.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=587"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}