Rakul Iyngarathasan
/
ROBOT_2-0
noraml
Nboard.h@0:7e4a20d28a90, 2019-01-23 (annotated)
- Committer:
- rakul
- Date:
- Wed Jan 23 18:40:02 2019 +0000
- Revision:
- 0:7e4a20d28a90
yolo;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
rakul | 0:7e4a20d28a90 | 1 | #include "mbed.h" |
rakul | 0:7e4a20d28a90 | 2 | |
rakul | 0:7e4a20d28a90 | 3 | DigitalOut LED0(PB_3); |
rakul | 0:7e4a20d28a90 | 4 | DigitalOut led1(PA_7); |
rakul | 0:7e4a20d28a90 | 5 | DigitalOut led2(PA_6); |
rakul | 0:7e4a20d28a90 | 6 | DigitalOut led3(PA_5); |
rakul | 0:7e4a20d28a90 | 7 | DigitalOut led4(PA_3); |
rakul | 0:7e4a20d28a90 | 8 | DigitalOut led5(PA_1); |
rakul | 0:7e4a20d28a90 | 9 | DigitalOut led6(PA_0); |
rakul | 0:7e4a20d28a90 | 10 | DigitalOut led7(PA_2); |
rakul | 0:7e4a20d28a90 | 11 | |
rakul | 0:7e4a20d28a90 | 12 | DigitalIn BP0(PA_9,PullUp); |
rakul | 0:7e4a20d28a90 | 13 | DigitalIn BP1(PA_10,PullUp); |
rakul | 0:7e4a20d28a90 | 14 | DigitalIn BP2(PB_0,PullUp); |
rakul | 0:7e4a20d28a90 | 15 | //DigitalIn BP3(PB_7,PullUp); |
rakul | 0:7e4a20d28a90 | 16 | |
rakul | 0:7e4a20d28a90 | 17 | |
rakul | 0:7e4a20d28a90 | 18 | DigitalIn Jack(PB_6,PullUp); |
rakul | 0:7e4a20d28a90 | 19 | DigitalIn BP(PB_7,PullUp); |
rakul | 0:7e4a20d28a90 | 20 | |
rakul | 0:7e4a20d28a90 | 21 | AnalogIn AnaIn(PB_1); |
rakul | 0:7e4a20d28a90 | 22 | PwmOut pwmd(PB_4); |
rakul | 0:7e4a20d28a90 | 23 | PwmOut pwmg(PB_5); |
rakul | 0:7e4a20d28a90 | 24 | |
rakul | 0:7e4a20d28a90 | 25 | BusOut LEDs(PB_3,PA_7,PA_6,PA_5,PA_3,PA_1,PA_0,PA_2); |
rakul | 0:7e4a20d28a90 | 26 | BusOut BusSelectMux (PA_8,PF_1,PF_0); |
rakul | 0:7e4a20d28a90 | 27 | |
rakul | 0:7e4a20d28a90 | 28 | #define Ana0 0 |
rakul | 0:7e4a20d28a90 | 29 | #define Ana1 1 |
rakul | 0:7e4a20d28a90 | 30 | #define Ana2 2 |
rakul | 0:7e4a20d28a90 | 31 | #define Ana3 3 |
rakul | 0:7e4a20d28a90 | 32 | #define Ana4 4 |
rakul | 0:7e4a20d28a90 | 33 | #define Ana5 5 |
rakul | 0:7e4a20d28a90 | 34 | #define AIn 6 |
rakul | 0:7e4a20d28a90 | 35 | #define Vpot 7 |