Aleksandar Cvetkovic 2020/0553

Dependencies:   Adafruit_GFX 19E042PIM_MB_PINS

Revision:
10:6cda70e4e04d
Parent:
9:f0c788cc02a2
--- a/main.cpp	Mon Dec 13 20:55:31 2021 +0000
+++ b/main.cpp	Mon Dec 13 20:59:55 2021 +0000
@@ -28,8 +28,6 @@
 MQTTClient client(&socket);
 // Message handler:
 MQTT::Message message;
-
-I2C i2c_obj(MB_OLED_SDA, MB_OLED_SCL);
 const char* topic_sub = "subpim";
 const char* topic_pub = "pubpim";
 // HiveMQ broker connectivity information:
@@ -72,8 +70,6 @@
     client.connect(data);
     client.subscribe(topic_sub, MQTT::QOS0, messageArrived);
     
-    i2c_obj.frequency(400000);
-    
     while(1) {
         thread_sleep_for(SMALL_WAIT_MS);
         client.yield(1000);