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: SDFileSystem app epson mbed msp430 pl tests
page.cpp
00001 // 00002 // Filename: page.h 00003 // 00004 // Base class for Flexbook pages. 00005 // 00006 00007 #include "page.h" 00008 #include "mbed.h" 00009 00010 #include <iostream> 00011 00012 namespace Flexbook { 00013 00014 Page::Page() 00015 : buzzer(p21) 00016 { 00017 } 00018 00019 Page::~Page() 00020 { 00021 } 00022 00023 void Page::HandlePageActions() 00024 { 00025 } 00026 00027 //start mfb adds 00028 void Page::Beep(int duration_ms) 00029 { 00030 buzzer = 1; 00031 wait_ms(duration_ms); 00032 buzzer = 0; 00033 } 00034 00035 void Page::ShortBeep() 00036 { 00037 Beep(100); 00038 } 00039 00040 void Page::MultiBeep(int number, int interval_ms) 00041 { 00042 for(int i=0; i<number; i++) 00043 { 00044 Beep(100); 00045 wait_ms(interval_ms); 00046 } 00047 } 00048 00049 void Page::TripleBeep() 00050 { 00051 MultiBeep(3, 300); 00052 } 00053 00054 00055 //end mfb adds 00056 00057 } // End Flexbook namespace. 00058 00059 00060 00061
Generated on Tue Jul 12 2022 21:14:35 by
