Simple control of the seven segment display
Dependencies: SevenSegmentDisplay mbed
main.cpp
00001 /********************************************************* 00002 *Renbed_Seven_Segment * 00003 *Author: Dan Argust * 00004 * * 00005 *A program that controls the seven segment displays * 00006 *********************************************************/ 00007 00008 #include "mbed.h" 00009 #include "SevenSegmentDisplay.h" 00010 00011 SevenSegmentDisplay seg(0); //creating the driver object 00012 00013 int main(){ 00014 seg.DisplayDigits(3,4); //display the digits 3 and 4 00015 wait(1); //wait 1 second 00016 seg.DisplayDigits(6,2); //display the digits 6 and 2 00017 }
Generated on Sun Jul 17 2022 00:47:56 by 1.7.2