Turns on an LED on for one second, then off for one second, repeatedly. Counts and displays the count on the attached serial monitor
- /* Sketch uses 13,808 bytes (12%) of program storage space. Maximum is 108,000 bytes.
- Global variables use 2,592 bytes of dynamic memory.
- Turns on an LED on for one second, then off for one second, repeatedly.
- Counts and displays the count on the attached serial monitor
- */
- int n = 0;
- void setup() {
- // initialize the digital pin as an output.
- pinMode(33, OUTPUT);
- // Initialize virtual COM over USB on Maple Mini
- Serial.begin(9600); // BAUD has no effect on USB serial: placeholder for physical UART
- // wait for serial monitor to be connected.
- while (!(Serial.isConnected() && (Serial.getDTR() || Serial.getRTS())))
- {
- digitalWrite(33,!digitalRead(33));// Turn the LED from off to on, or on to off
- delay(100); // fast blink
- }
- Serial.println("Blink LED & count Demo");
- }
- void loop() {
- digitalWrite(33, HIGH); // set the LED on
- //delay(5); // wait for a second
- digitalWrite(33, LOW); // set the LED off
- Serial.print("Loop #: ");
- n++;
- Serial.println(n);
- //delay(5); // wait
- }
Learn More :
Display
- DISPLAY SOURCE CODE AS OUTPUT IN C PROGRAM
- Sort Three Numbers - program reads in three Integers and displays them in ascending order.
- C Program To Display The Number In A Specific Formats
- C Program that Display a IBM Logo
- C program calculates a given function in range given by user, stores the data in arrays and displays the answer in a table.
- Pre Order, Post order, In order Implement Binary Tree using linked list
- C Program to accept m*n matrix from user and display the elements of given matrix using function
- C Program to accept n numbers & store all prime numbers in an array & display this result
- C program to display the transpose of given 3 X 3 matrix
- C Program to accept a string from user, delete all vowels from that string & display the result
- C Program To Create Two Singly Linked List and Perform Following Operation
- Create Two Singly Linked List Perform Differences Display It C Program
- C Program to Create, Display, Insert and Deletion of Queue Elements
- Creation and Display of Elements in Both Forward and Reverse Direction in a Doubly Linked List
- C Program to Display a real time clock (HH:MM:SS) on the LCD
- Program to Display Pie Chart Accepting User Input C Program
- Linked List For Getting Employee Details, Display and Search For Salary C Program
- Menu driven program in the creation,display,search, insertion and deletion of a node in the linked list
- Program to display the following pattern in C
- Display the Following Pattern * ** *** **** ***** C Program
Attach
LED
Count
- C Program String - Alphabet Count Example
- C Program String Count Example
- Write the procedure , which is one of a sum , a product and a geometric average in the panel for the NxM elements are located on opposite diagonal and main diagonal . Remind ! Counting only odd elements !
- C Program Array NxM Elements Geometric/Arithmetic
- C Program to Count Number of Lines in Input until Interrupted by CTRL + Z
- Returns: array of decoded values. [0] - count of values
- Max count of chars, Max count of nums and Max count of signs
- C Program to Count Vowels, Consonants and Spaces in a string
- C Program to count number of sentences words and letters in a paragraph
- Un-sortiertes Array and Sortiertes Array
- C Program to Count Change Program
- Menu driven program in C which performs the following operations on strings
- C program to accept n number from user,store these numbers into an array & count the no of occurrences of each number
Turn
Monitor
Off