code ecran
Dependencies: mbed
Fork of SSD1306 by
main.cpp@5:4b89cc384f43, 2017-10-30 (annotated)
- Committer:
- Raphou
- Date:
- Mon Oct 30 13:44:54 2017 +0000
- Revision:
- 5:4b89cc384f43
Code relatif ? l'?cran
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Raphou | 5:4b89cc384f43 | 1 | #include "mbed.h" |
Raphou | 5:4b89cc384f43 | 2 | #include "ssd1306.h" |
Raphou | 5:4b89cc384f43 | 3 | |
Raphou | 5:4b89cc384f43 | 4 | SSD1306 ecran(D3,PA_1,PA_4,PA_5,PA_6); // ECRAN(CS,Rst,DC,Clk,Data) |
Raphou | 5:4b89cc384f43 | 5 | |
Raphou | 5:4b89cc384f43 | 6 | int main() |
Raphou | 5:4b89cc384f43 | 7 | { |
Raphou | 5:4b89cc384f43 | 8 | char *a; |
Raphou | 5:4b89cc384f43 | 9 | a = "Coucou"; |
Raphou | 5:4b89cc384f43 | 10 | |
Raphou | 5:4b89cc384f43 | 11 | while(1) |
Raphou | 5:4b89cc384f43 | 12 | { |
Raphou | 5:4b89cc384f43 | 13 | ecran.printf("%s",&a); |
Raphou | 5:4b89cc384f43 | 14 | } |
Raphou | 5:4b89cc384f43 | 15 | |
Raphou | 5:4b89cc384f43 | 16 | } |