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
main.cpp
- Committer:
- sillevl
- Date:
- 2014-12-13
- Revision:
- 4:2c91c9eccf3a
- Parent:
- 3:ce34dfe2463b
- Child:
- 7:baf207d88603
File content as of revision 4:2c91c9eccf3a:
#include "mbed.h"
#include "cmsis_os.h"
#include "Airsofttimer.h"
#include "TextLCD.h"
LedPins ledpins = {P2_4, P2_4}; // left, right
KeyboardPins keyboardpins = {{P0_8, P0_9, P0_10, P0_11}, {P0_16, P0_17, P0_18}};
LcdPins lcdpins = {P1_30, P1_31, P0_23, P0_24, P0_25, P0_26};
Pinouts pinouts = {
P0_5, // button
P0_4, // key
ledpins, // leds
P2_3, // buzzer
keyboardpins,
lcdpins// lcd
};
int main()
{
Airsofttimer airsofttimer(pinouts);
}
//DigitalOut heartbeatLed(LED1);
//DigitalOut led2(LED2);
//DigitalOut led3(LED3);
//DigitalOut led4(LED4);
