Bruno Allaire-Lemay
/
APP1test
df
Fork of APP1 by
SPIDisplayer.hpp@21:a111be2582be, 2017-01-18 (annotated)
- Committer:
- dupm2216
- Date:
- Wed Jan 18 02:38:05 2017 +0000
- Revision:
- 21:a111be2582be
- Parent:
- 13:bb9669053eb3
Add code header
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
dupm2216 | 21:a111be2582be | 1 | ///////////////////////////////////////////////////////////// |
dupm2216 | 21:a111be2582be | 2 | // APP 1: Systèmes à microprocesseurs // |
dupm2216 | 21:a111be2582be | 3 | // // |
dupm2216 | 21:a111be2582be | 4 | // Université de Sherbrooke // |
dupm2216 | 21:a111be2582be | 5 | // Génie informatique // |
dupm2216 | 21:a111be2582be | 6 | // Session 5, Hiver 2017 // |
dupm2216 | 21:a111be2582be | 7 | // // |
dupm2216 | 21:a111be2582be | 8 | // Date: 17 janvier 2017 // |
dupm2216 | 21:a111be2582be | 9 | // // |
dupm2216 | 21:a111be2582be | 10 | // Auteurs: Maxime Dupuis, dupm2216 // |
dupm2216 | 21:a111be2582be | 11 | // Bruno Allaire-Lemay, allb2701 // |
dupm2216 | 21:a111be2582be | 12 | ///////////////////////////////////////////////////////////// |
dupm2216 | 21:a111be2582be | 13 | |
GaiSensei | 2:b8a20f7e2912 | 14 | #include "mbed.h" |
GaiSensei | 13:bb9669053eb3 | 15 | #include "DisplayerConstants.hpp" |
GaiSensei | 2:b8a20f7e2912 | 16 | |
GaiSensei | 2:b8a20f7e2912 | 17 | class SPIDisplayer |
GaiSensei | 2:b8a20f7e2912 | 18 | { |
GaiSensei | 2:b8a20f7e2912 | 19 | public: |
GaiSensei | 2:b8a20f7e2912 | 20 | SPIDisplayer(PinName mosi, PinName miso, PinName sclk, PinName ssel); |
GaiSensei | 2:b8a20f7e2912 | 21 | void displayAngle(float angle); |
GaiSensei | 2:b8a20f7e2912 | 22 | void reset(); |
GaiSensei | 2:b8a20f7e2912 | 23 | private: |
GaiSensei | 2:b8a20f7e2912 | 24 | SPI device; |
GaiSensei | 2:b8a20f7e2912 | 25 | Serial pc; |
GaiSensei | 2:b8a20f7e2912 | 26 | }; |