Revision 369
First crack at BOMv1.5 driver code. Pindefs are correct and the existing functions still work. At the moment the main function controls the clock and data of the rbom so you can shift things around. TODO: get bom_set_emitters working to correctly shift 16 bits around. Eventually this will have to be merged with the new bom code that James wrote, probably manually.
dragonfly_lib.h | ||
---|---|---|
60 | 60 |
#define BUZZER 0x40 |
61 | 61 |
/** @brief Initialize the LCD screen **/ |
62 | 62 |
#define LCD 0x80 |
63 |
/** @brief Initialize everything **/ |
|
64 |
#define ALL_ON 0xFF |
|
63 |
/** @brief Initialize the rangefinders **/ |
|
64 |
#define RANGE 0x0100 |
|
65 |
/** @brief Initialize the rangefinders **/ |
|
66 |
#define BOM_15 0x0200 |
|
67 |
/** @brief Initialize everything (default is BOM v1.0) **/ |
|
68 |
#define ALL_ON 0x01FF |
|
65 | 69 |
|
66 | 70 |
|
67 | 71 |
/** @brief Initialize the board **/ |
Also available in: Unified diff