![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Programa para modificar imagenes en OLED Cuenta con librerias de algunas imagenes como ejemplo
Dependencies: GameOver MikeWachowski SSD1306_128x64_I2C flechaarriba mbed sobrepeso stop
Fork of DisplayOled1 by
main.cpp@1:7195b6d24cf4, 2017-05-23 (annotated)
- Committer:
- franni
- Date:
- Tue May 23 18:39:12 2017 +0000
- Revision:
- 1:7195b6d24cf4
- Parent:
- 0:3b87797f65fc
- Child:
- 2:5d1c146e04d4
DISPLAY OLED SSD1306 I2C
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
franni | 1:7195b6d24cf4 | 1 | #include "mbed.h" |
franni | 1:7195b6d24cf4 | 2 | #include "SSD1306.h" |
franni | 0:3b87797f65fc | 3 | |
franni | 1:7195b6d24cf4 | 4 | #define D_SDA PTE25 |
franni | 1:7195b6d24cf4 | 5 | #define D_SCL PTE24 |
franni | 1:7195b6d24cf4 | 6 | I2C i2c(D_SDA, D_SCL); |
franni | 1:7195b6d24cf4 | 7 | |
franni | 1:7195b6d24cf4 | 8 | SSD1306 oled = SSD1306(i2c, SSD1308_SA0); |
franni | 0:3b87797f65fc | 9 | |
franni | 1:7195b6d24cf4 | 10 | int main() { |
franni | 1:7195b6d24cf4 | 11 | oled.writeString(0, 0, "Universidad Distrital"); |
franni | 1:7195b6d24cf4 | 12 | // oled.printf("Hello World !"); |
franni | 1:7195b6d24cf4 | 13 | wait(1); |
franni | 1:7195b6d24cf4 | 14 | |
franni | 1:7195b6d24cf4 | 15 | oled.writeString(0, 0, "2017 Digitales II"); |
franni | 0:3b87797f65fc | 16 | |
franni | 1:7195b6d24cf4 | 17 | |
franni | 0:3b87797f65fc | 18 | |
franni | 1:7195b6d24cf4 | 19 | } |
franni | 0:3b87797f65fc | 20 | |
franni | 0:3b87797f65fc | 21 | |
franni | 0:3b87797f65fc | 22 |