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 TextLCD keypad
Board.cpp
00001 #include "Board.h" 00002 00003 Board::Board(Pinouts pinouts){ 00004 lcd = new LCD(pinouts.lcd.rs, pinouts.lcd.e, pinouts.lcd.p4, pinouts.lcd.p5, pinouts.lcd.p6, pinouts.lcd.p7, LCD::LCD20x4); 00005 leds = new Leds(pinouts.leds.left, pinouts.leds.right); 00006 button = new Button(pinouts.button); 00007 key = new Key(pinouts.key); 00008 keyboard = new Keyboard(pinouts.keyboard); 00009 buzzer = new Buzzer(pinouts.buzzer); 00010 00011 keyboard->attach(this, &Board::keyboardButton); 00012 keyboard->start(); // energize the keypad via c0-c3 00013 } 00014 00015 uint32_t Board::keyboardButton(uint32_t index){ 00016 _callback.call(Keyboard::KEYTABLE[index]); 00017 return 0; 00018 } 00019
Generated on Tue Jul 12 2022 21:04:09 by
1.7.2
