Initial Fork
Dependencies: CRC16
Fork of SWSPI by
HC05.cpp@1:faa9f74488ba, 2014-05-08 (annotated)
- Committer:
- Throwbot
- Date:
- Thu May 08 19:10:52 2014 +0000
- Revision:
- 1:faa9f74488ba
- Child:
- 2:c13831ca234c
first commit
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Throwbot | 1:faa9f74488ba | 1 | #include "HC05.h" |
Throwbot | 1:faa9f74488ba | 2 | |
Throwbot | 1:faa9f74488ba | 3 | HC05::HC05(PinName tx_pin, PinName rx_pin, PinName en_pin): |
Throwbot | 1:faa9f74488ba | 4 | Serial(tx_pin, rx_pin), |
Throwbot | 1:faa9f74488ba | 5 | on_switch(en_pin) |
Throwbot | 1:faa9f74488ba | 6 | { |
Throwbot | 1:faa9f74488ba | 7 | on_switch = 1; |
Throwbot | 1:faa9f74488ba | 8 | } |