Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: GameOver MikeWachowski SSD1306_128x64_I2C flechaarriba mbed sobrepeso stop
Fork of DisplayOled1 by
Revision 2:5d1c146e04d4, committed 2017-09-22
- Comitter:
- Abril1030
- Date:
- Fri Sep 22 23:00:52 2017 +0000
- Parent:
- 1:7195b6d24cf4
- Commit message:
- Programa para OLED con librerias que permite modificarlas
Changed in this revision
--- a/Adafruit_GFX.lib Tue May 23 18:39:12 2017 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -https://developer.mbed.org/users/franni/code/Adafruit_GFX/#086eea28d1dd
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/GameOver.lib Fri Sep 22 23:00:52 2017 +0000 @@ -0,0 +1,1 @@ +https://os.mbed.com/users/Abril1030/code/GameOver/#bfdc7ede55b6
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/MikeWachowski.lib Fri Sep 22 23:00:52 2017 +0000 @@ -0,0 +1,1 @@ +https://os.mbed.com/users/Abril1030/code/MikeWachowski/#cd694606e7a2
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/flechaarriba.lib Fri Sep 22 23:00:52 2017 +0000 @@ -0,0 +1,1 @@ +https://os.mbed.com/users/Abril1030/code/flechaarriba/#874c365e9483
--- a/main.cpp Tue May 23 18:39:12 2017 +0000
+++ b/main.cpp Fri Sep 22 23:00:52 2017 +0000
@@ -1,20 +1,72 @@
#include "mbed.h"
+ #include "flechaabajo.h"
+ #include "flechaarriba.h"
+ #include "stop.h"
+ #include "sobrepeso.h"
+ #include "GameOver.h"
+ #include "Mike.h"
#include "SSD1306.h"
- #define D_SDA PTE25
- #define D_SCL PTE24
+ #define D_SDA PTC11
+ #define D_SCL PTC10
I2C i2c(D_SDA, D_SCL);
+ //Serial pc(USBTX, USBRX); // tx, rx
+ //Serial device(PTE0, PTE1);
+ char x;
+
SSD1306 oled = SSD1306(i2c, SSD1308_SA0);
int main() {
- oled.writeString(0, 0, "Universidad Distrital");
- // oled.printf("Hello World !");
- wait(1);
-
- oled.writeString(0, 0, "2017 Digitales II");
-
-
+ // if(device.readable()) {
+ // pc.putc(device.getc());
+ //oled.writeString(0,3,"Andres perra");
+ // }
+
+ oled.writeBitmap((uint8_t*) Pikachu);
+ /*oled.setDisplayOff();
+ wait(0.2);
+ oled.setDisplayOn();
+ wait(0.2);
+ oled.writeBitmap((uint8_t*) sobrepeso);
+ oled.setDisplayOff();
+ wait(0.2);
+ oled.setDisplayOn();
+ wait(0.2);
+ oled.writeBitmap((uint8_t*) sobrepeso);
+ oled.setDisplayOff();
+ wait(0.2);
+ oled.setDisplayOn();
+ wait(0.2);
+ oled.writeBitmap((uint8_t*) sobrepeso);
+ oled.setDisplayOff();
+ wait(0.2);
+ oled.setDisplayOn();
+ wait(0.2);
+ oled.writeBitmap((uint8_t*) sobrepeso);
+ oled.setDisplayOff();
+ wait(0.2);
+ oled.setDisplayOn();*/
+
+
+
+ while(1){
+
+
+ /*device.getc();
+ if (x=='a'){
+ oled.writeString(1, 3, "Primer Piso");
+ }
+ if (x=='b'){
+ oled.writeString(1, 3, "Segundo Piso");
+ }
+ if (x=='c'){
+ oled.writeString(1, 3, "Tercer Piso");
+ }
+ if (x=='d'){
+ oled.writeString(1, 3, "Cuarto Piso");
+ }*/
+ }
}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sobrepeso.lib Fri Sep 22 23:00:52 2017 +0000 @@ -0,0 +1,1 @@ +https://os.mbed.com/users/Abril1030/code/sobrepeso/#07d45a05b8eb
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/stop.lib Fri Sep 22 23:00:52 2017 +0000 @@ -0,0 +1,1 @@ +https://os.mbed.com/users/Abril1030/code/stop/#d01edb29b25c
