Bruno Allaire-Lemay
/
APP1test
df
Fork of APP1 by
SPIDisplayer.hpp@23:2531e72d92b9, 2017-02-09 (annotated)
- Committer:
- GaiSensei
- Date:
- Thu Feb 09 15:55:18 2017 +0000
- Revision:
- 23:2531e72d92b9
- Parent:
- 21:a111be2582be
gh
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 | }; |