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
00001 #include "mbed.h" 00002 00003 00004 #include "Airsofttimer.h" 00005 #include "TextLCD.h" 00006 00007 PinName buttonpin = P0_5; 00008 PinName keypin = P0_4; 00009 PinName buzzerpin = P2_3; 00010 LedPins ledpins = {P2_4, P2_5}; // left, right 00011 KeyboardPins keyboardpins = {{P0_8, P0_9, P0_10, P0_11}, {P0_16, P0_17, P0_18}}; 00012 LcdPins lcdpins = {P1_30, P1_31, P0_23, P0_24, P0_25, P0_26}; 00013 00014 Pinouts pinouts = { 00015 buttonpin, 00016 keypin, 00017 ledpins, 00018 buzzerpin, 00019 keyboardpins, 00020 lcdpins 00021 }; 00022 00023 int main() 00024 { 00025 Airsofttimer airsofttimer(pinouts); 00026 } 00027 00028 00029 //DigitalOut heartbeatLed(LED1); 00030 //DigitalOut led2(LED2); 00031 //DigitalOut led3(LED3); 00032 //DigitalOut led4(LED4); 00033
Generated on Tue Jul 12 2022 21:04:09 by
1.7.2