Hari Prasad
/
led_intensity
asd
main.cpp@0:3a0f92cc8a81, 2015-07-16 (annotated)
- Committer:
- harseed951
- Date:
- Thu Jul 16 08:29:31 2015 +0000
- Revision:
- 0:3a0f92cc8a81
asd
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
harseed951 | 0:3a0f92cc8a81 | 1 | #include"mbed.h" |
harseed951 | 0:3a0f92cc8a81 | 2 | |
harseed951 | 0:3a0f92cc8a81 | 3 | PwmOut p(LED1); |
harseed951 | 0:3a0f92cc8a81 | 4 | PwmOut q(LED2); |
harseed951 | 0:3a0f92cc8a81 | 5 | PwmOut a(LED3); |
harseed951 | 0:3a0f92cc8a81 | 6 | PwmOut b(LED4); |
harseed951 | 0:3a0f92cc8a81 | 7 | AnalogIn pot(p20); |
harseed951 | 0:3a0f92cc8a81 | 8 | |
harseed951 | 0:3a0f92cc8a81 | 9 | int main(){ |
harseed951 | 0:3a0f92cc8a81 | 10 | while(1) |
harseed951 | 0:3a0f92cc8a81 | 11 | { |
harseed951 | 0:3a0f92cc8a81 | 12 | p= pot; |
harseed951 | 0:3a0f92cc8a81 | 13 | q= pot; |
harseed951 | 0:3a0f92cc8a81 | 14 | a= pot; |
harseed951 | 0:3a0f92cc8a81 | 15 | b= pot; |
harseed951 | 0:3a0f92cc8a81 | 16 | } |
harseed951 | 0:3a0f92cc8a81 | 17 | } |