Matthias Praja
/
BERTL14_LINESENSOR
Following the line
Fork of BERTL14_LINESENSOR by
main.cpp@0:acfdc7c80165, 2014-05-20 (annotated)
- Committer:
- bulme_rai
- Date:
- Tue May 20 06:59:40 2014 +0000
- Revision:
- 0:acfdc7c80165
- Child:
- 1:738be9ff3851
Testprogramm f?r BERTL 2014, der BULME Graz/G?sting.; Die Taster vom I2C Expander werden direkt auf die LED's des Expander geschalten
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
bulme_rai | 0:acfdc7c80165 | 1 | /*********************************** |
bulme_rai | 0:acfdc7c80165 | 2 | name: BERTL14_LINESENSOR |
bulme_rai | 0:acfdc7c80165 | 3 | author: Wolfgang Raimann |
bulme_rai | 0:acfdc7c80165 | 4 | email: rai@bulme.at |
bulme_rai | 0:acfdc7c80165 | 5 | description: |
bulme_rai | 0:acfdc7c80165 | 6 | Die vier Sensoren auf der Unterseite werden auf die LEDs D10-D13 durchgeschaltet |
bulme_rai | 0:acfdc7c80165 | 7 | ***********************************/ |
bulme_rai | 0:acfdc7c80165 | 8 | |
bulme_rai | 0:acfdc7c80165 | 9 | #include "mbed.h" |
bulme_rai | 0:acfdc7c80165 | 10 | |
bulme_rai | 0:acfdc7c80165 | 11 | DigitalOut myled(LED1); |
bulme_rai | 0:acfdc7c80165 | 12 | |
bulme_rai | 0:acfdc7c80165 | 13 | |
bulme_rai | 0:acfdc7c80165 | 14 | BusIn linesensor(p18, p16, p19, p17); |
bulme_rai | 0:acfdc7c80165 | 15 | |
bulme_rai | 0:acfdc7c80165 | 16 | BusOut leds(LED1, LED2, LED3, LED4); |
bulme_rai | 0:acfdc7c80165 | 17 | |
bulme_rai | 0:acfdc7c80165 | 18 | |
bulme_rai | 0:acfdc7c80165 | 19 | int main() { |
bulme_rai | 0:acfdc7c80165 | 20 | while(1) { |
bulme_rai | 0:acfdc7c80165 | 21 | leds = linesensor; |
bulme_rai | 0:acfdc7c80165 | 22 | } |
bulme_rai | 0:acfdc7c80165 | 23 | } |