Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed 4DGL-uLCD-SE SDFileSystem PinDetect
Letter.cpp
00001 #include "Letter.h" 00002 using namespace std; 00003 00004 Letter::Letter() 00005 { 00006 current= 'A'; 00007 } 00008 00009 void Letter::inc() 00010 { 00011 if (current=='Z'){ 00012 current = 'A'; 00013 } 00014 else{ 00015 current++; 00016 } 00017 } 00018 void Letter::dec() 00019 { 00020 if (current=='A'){ 00021 current = 'Z'; 00022 } 00023 else { 00024 current--; 00025 } 00026 } 00027 char Letter::getChar(){ 00028 return current; 00029 }
Generated on Wed Jul 13 2022 03:36:36 by
1.7.2